Hello, everyone.
So in this video we are going to discuss about some ports.
And protocols. So the first Port that we are
going to discuss is FTP.
FTP stands for file transfer protocol
The port number for FTP is 20 and 21.
The usage of FTP protocol is
to transfer files or upload and download
files between a server and a client.
So basically system admins.
Or any one of us can use FTP.
To transfer files between a server and a client
so we can send file as well
as receive file.
So the Practical time, let's see how
we can perform FTP.
So as you can see, I have opened up my terminal on the
terminal you simply have to type FTP and
hit enter.
After hitting enter you can see that you have come
inside the FTP.
Now to connect to any server you need to
type open.
A connection to whatever server you want to connect. So
let's say I want to connect to the server 192.168 43.213
After giving the servers IP address you just
have to hit enter.
After hitting enter you can see connected to the server.
And a welcome message also appears.
Perfect. Now it is asking for a username so
I will provide the username. So let's say
the username is admin.
And then it will ask you to specify the password. I have
also given the password and now I
have successfully logged in into the application.
After logging in into the FTP I will
just type the ls command which stands for list
to see whatever is there into
the FTP server?
As you can see this is the output of the ls command
and there are couple of files and folders over there.
So let's say we try to see what is
there inside this readme file?
So to read this file, we need to download this file as
FTP does not allow an option to read it
to read the file.
So first I have to download this.
So for downloading I'm going to type a command that is
get because I want to get the file into my computer.
Similarly to upload a file. I will
use put command.
So I have given get and the file name
and you can see the transfer is complete and it
has been downloaded into my computer. So let me
just go into my computer and see what is inside this file.
Let me search for the file and let me just try to open this file.
So it is written. Congratulations on reaching here for
FTP.
Perfect. So we have completed the FTP and
we have understood that how FTP works
and how you can perform successful FTP
to transfer files between two computers.
Thank you.