File transfer there are many commands that are used to transfer files from one computer to another as
long as your computer is connected in the network.
You could trash RAW files or directories for one server to another.
Some of those commands are FGP which stands for file trash or pleural core.
This is one of the all legendary commands that are used in many different operating system.
It is still used in Linux Windows and Mac and many other operating system this command is used.
Next one we have Sep which is a secure copy protocol.
And then the next one is our sync command.
This command is mostly used by System Administrator to perform files backups from one system to another.
They could schedule those commands to cron job to copy all those sync our sync files.
So let's look at a few of these commands in a Linux environment.
Harry how are Linux machine and I'm logged in as myself.
So when you want to copy a file Let's say I want to copy file that is called My first file.
The first thing I have to do is type a.p and the machine name that is going to which is the destination
server.
OK.
So as an example to T-P of files from your server to another server I have logged in to my Linux machines
myself and we'll see who you are yourself.
So before you try to do a transfer just see if you could ping Google because without internet you won't
be able to transfer any file.
Now I could ping Google it means my computer is on the network.
Now where do we have to trash for.
And what do we have to trash for now of course you do need a server that is running FCP daemon meaning
your server your client and the server that you're trying to connect should have FCP daemon running
and the demon name is v s f t P D.
For this training we do not have an extra external F.T. piece so we will try to connect to the Redhat
anti-peace server just for training purposes.
So the command to run is empty space empty P dot Redhat dot com and you will see as soon as you are
connected it will ask you for the password for the username and password.
So you provide the credentials that are given to you by the Red Hat support.
So when you enter the password and username then you will enter the command put and the file name and
that's how it will be transferred to to the to the ATP site.
Now if you're trying to trash for to a server that is now running the FGP daemon.
So let's say in our environment we have a P S minus either and little group for FPP and you will see
there is no Tippee daemon running right.
So as as as a training purpose we'll try to for it to our own server and our own server is local host
or the name of our host which is my first Linux host Linux OS.
So first issue paying my first the next verse.
You'll see you are getting your playback right so it means you are connected to your own machine of
course.
Let's clear it out and now try to do a.p.
My first Linux OS and use hit enter.
You will see it says connect FTB connect connection refused.
And why is that.
Because my server or my Linux machine is not running the demon and the daemon is the one that listens
to the incoming traffic.
So anyway this is how you run the FCP command and you transfer the files and again the purpose of doing
FGP is if you have an issue with your system and you troubleshooting it and you are in Rob support whether
it's Redhat or Centaurus or windows or whatever the support that you have involved.
They would ask you to send the Lawks and they will give you their free server account information or
credentials.
So you would have to run FTB command to send the logs or
the other command that we wanted to Khowar is Sep.
Now SEP is basically copying a file from one machine to another and of course it has in front of a saved
means it's copying it securely.
So let's take an example of a file that we will want to transfer and see which directory we are in we
are in our home directory.
And let's say I have a file called right here lala land so I want to take this file copy it from machine
to machine B.
Now of course we don't have machine B where we want to transfer.
So we will use our own machine and pretend that it's a remote machine.
So the way it works is we will do as.
La la land which is the file that I am trying to copy or where.
So where am I trying to copy or.
I'm trying to copy over to another machine remote machine so we are pretending the remote machine is
which is our own machine of course.
My first the next OS and then you put Coben which is first the hostname slash.
Where are you copying it to.
So let's say I want to copy it.
My home my user directory and the directory I want to copy to latest Seinfeld.
Seinfeld is a directory a way to copy the file into that folder.
So once you have the command hit enter and it says Konar resolve name my first Linux OS.
Oh yeah because I have misspelled First you the type of things that you probably would have to troubleshoot.
You enter my first than X..
So are coming up so what we do is we'll just take out this part.
So I'm just going to what I'm going to do is win a copy
and paste it and then hit it.
OK.
So it is saying that connect to host my first Linux OS port 22 connection refused so it is refusing
a connection.
Why is it refusing.
Not sure but let's try to localhost.
Yes.
So you put in the password of course your own password because you are logging in as yourself on the
machine as well.
This is your own password so once you put in the password you will see it says lala land.
Hundred percent completed 7 bytes and the right and it's point five kilobyte parsec and the amount of
time it took the trash for the trash.
Now let's werefor.
If Seinfeld for directory has the lala land file in it.
So which i meant.
I mean home.
So let's go to Seinfeld and our Alice to do ls myself.
And you'll see.
Yep right here is la la land.
Just to confirm it's the host
My first Linux.
Yes.
So it has one eye to $161 14.
OK so now I know.
So this one I have hardcoded my host name with one eye to 168 Juanda 14 and I'm sure why did it work.
Because my IP has probably changed by now.
So it's probably hitting some other device in my network.
And you see it.
Yes.
Now my Linux machine is one of 13.
And the reason I was not able to connect because 1 at 14 is probably one of my other laptop or my iPad
or some other device in my home network that got that 14 IP.
And when I ran the FCP command it was actually going to that device.
Perfect.
It was a very good example.
Now you guys learn as well that how important it is at c file host follows.
I'll go ahead and modify that become truth rude and how do I see it.
And I'll just take these two entries so I'll just leave these two and close.
So now if you run that command that we were trying to run before hit up arrow key.
OK.
Sorry we were as locked in as a self.
Right.
So now when you run that command you will see it will give us a prompt go see.
Right.
This was the one right.
You had better see.
It's connected.
The next one is our sync and this will tell you exactly if I just type our single to tell you how you
can copy files if you just want to itemize the changes.
Also tell you the progress of it.
So this command is used.
It's a very famous command now and it is used by many system engineers to do and to perform well systems
backup.