How to upload and download files using FTP(file transfer protocol) – ftp command line options

FTP is the abbreviation of File Transfer Protocol which is used to transfer file from one server to another. The file transfer procol has a lot of commandline options to manage simply. We have already discussed the basic commands of FTP in >> FTP basics <<

Here I am explaining the Upload and Download options in FTP in detail.

How to download a single file from server using ftp ?

You can use the ftp command “get” to get/download a file from remote server to your local end or to another server. Here is the example for the same;

Step I : ftp to remote server

1, ftp domain.com
2, ftp IP-Address-of-server 
3, ftp Host-name-of-server

Then user-name and password of the ftp account.

Step II : Execute the following command to download file.

get file-name-to-download

For example, if you want to download file ‘download1.txt’ from remote server, simply type the get command as below:

get download1.txt

How to download multiple files from server using ftp ?

Use ‘mget’ instead of the command ‘get’ 🙂
The step I is same, type the files names after the command ‘mget’. See the example:

mget download1.txt download2.txt download3.txt

download

How to upload a single file to server using ftp ?

Similarly, use the command ‘put’ to upload file from the local end to remote server.

Step I : Connect to ftp account.
Step II : Type the ‘put’ command as bellow:

put file-to-upload

Example:

put upload1.txt

For uploading multiple files, use ‘mput’ instead of ‘put’.

mput upload1.txt upload2.txt upload3.txt

upload

That’s it!!

Related Links:
Frequently using ftp commands with example
How to change ftp port – cpanel

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *