FTP Command Line

FTP (File Transfer Protocol) is the most popular protocol to transfer files (download and upload) from one system to another system. It provides the fastest way transfer files. There is much application available on Linux and windows to FTP services like vsFTPd, proFTPd for Linux, FileZilla Server for windows. There are various ways to connect to the ftp server, Also you can find multiple free tools on the internet to work with FTP. But system admins know the power of command line. This article will help you to how to connect to FTP server using the command line and Download and Upload Files using FTP protocol between FTP server local system. Remember that FTP is not a secure protocol. We recommend using SFTP for transferring files security. Visit below links to how to use SFTP.

1. Connect to FTP Server via Command Line

To connect to any FTP server from windows open its command prompt and for Linux open terminal window. Now you have required IP or Hostname of FTP server and login credentials to connect with a specific user.

2. Upload Single File to FTP Server

To upload file on FTP server use put command from FTP prompt. First, navigate to the desired directory on FTP server where to upload a file and use the following command. It will upload local system file c:filesfile1.txt to uploads directory on FTP server.

3. Download Single File from FTP Server

To download the file from FTP server, we use get command. Using that command we can download one time at a time. To download any file from FTP server, First login to your ftp server, navigate to directory and use the following command to download

4. Upload Multiple Files to FTP Server

To upload multiple files to FTP server we use mput command from FTP prompt. We can specify wild card character to upload multiple files to the server at a time. First, navigate to the desired directory on FTP server where to upload a file and use the following command. It will upload local system files with .txt extension in c:files directory to uploads directory on FTP server.

5. Download Multiple Files from FTP Server

To download multiple files from FTP server, we use mget command. Using that command we can download more than one files at a time. To download multiple files specify wild card character for specifying directory name do download all files from the directory.