How to upload and download files using FTP?

FTP is nothing but the "File Transfer Protocol" that we all know. This is used to upload and download files from source to destination. There are multiple ways to connect to FTP server i.e. using FTP client, web browser and command line.

Today, we are going to discuss FTP using command line but do remember FTP is not a secure protocol so most of the system administrators uses SFTP (Secure File Transfer Protocol).

1) How to login to FTP server via command line for Windows and Linux?
You can use "Command Prompt" on Windows system to connect to FTP server and "Terminal" for Linux system. All you need to specify is the server IP address or a hostname of the FTP server with FTP username and password.
For example :-

C:\> ftp ftp.24x7servermanagement.com
C:\> ftp 108.178.38.194

2) put command - to upload file on FTP server.
We've to use "put" command to upload file to FTP server from your system.
Let's assume, we want to upload a file from Windows Computer to Linux Server.

C:\>ftp ftp.24x7servermanagement.com
ftp> cd images
ftp> put c:image.jpg

3) get command - to download file from FTP server.
We've to use "get" command to download file from FTP server to your system.
Let's assume, we want to download a file from Linux Server to Windows Computer.

C:\>ftp ftp.24x7servermanagement.com
ftp> cd images
ftp> get image.jpg

4) lcd command - to change local directory while doing FTP.
We have various drives present on our Windows computer like C, D, E drive etc. We often need to upload a file from different locations to do so, we need to first change the local drive while doing FTP.

C:\>ftp ftp.24x7servermanagement.com
ftp> lcd D:\testing\images
Local directory now D:\testing\images
 
5) mput command - to upload multipe files to FTP server.
We've to use "mput command to upload multiple files to FTP server from your system.
Let's assume, we want to upload multiple TXT files from Windows Computer to Linux Server.

C:\>ftp ftp.24x7servermanagement.com
ftp> lcd D:\testing\images
ftp> put *.jpg

Here, * (Wild Character) is used to upload multiple files.

6) mget command - to download multiple files from FTP server.
We've to use "mget command to download multiple files from FTP server to your system.

ftp> mget *.jpg


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to use local printers via Remote Desktop Connection?

If you are using Remote Desktop Connection on windows and wish to use local printers via RDP then...

How to change/customize RDP session screen resolution?

The RDP session screen resolution can be customized according to the user’s needs while using...

How change remote desktop port?

Steps to update the remote desktop default port to 50262 - Go to start >> select run - 1....

How to setup the private nameservers on WHM?

Setup the private nameservers on WHM - 1. Login to WHM.2. Go to DNS Functions >> Edit DNS...

Powered by WHMCompleteSolution