FreeKB - Linux Commands ftp
Linux Commands - ftp

By default, the ftp command may not be installed on your system. apt-get or yum can be used to install the ftp command.

apt-get install ftp
yum install ftp


To connect to a FTP server, at the command line, type FTP and then the domain name or IP address of the FTP server.  If there is only a prompt such as FTP >, you are not connected to the FTP server.



On the other hand, after typing ftp and then the domain name or IP address of the FTP server, if you get a welcome message, you are connected to the FTP server.

Connected to
220---------Welcome to Pure-FTPd [privsep] [TLD]---------
220-You are user number 1 of 50 allowd.
220-Local time is now 20:37.  Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220-You will be disconnected after 15 minutes of inactivity.
User (


You will now need to issues commands to be authenticated.  Type user and then your username.  Next type your password.

User ( billyt
331 User billyt OK.  Password required
Password: ********
230 OK. Current directory is /
ftp >


You are now connected, and you can use typically commands such as PWD and CD and LCD.  The most common first task is to upload a file to the remote computer.

ftp> LCD C:\ 
#Local change directory
ftp> PUT *   
#Transfer everything in the LCD to the remote machine


Use the quit command to disconnect from the FTP server.


Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter e7934 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |