Linux ftp command Help and Examples

April 10, 2019

Comments

Adsense

Adsense

Adsense

Adsense

Linux command FTP stands for File Transfer Protocol. It is used to file transfer to/from a remote network.

Linux and UNIX operating systems have a built-in shell to execute FTP clients to building FTP connections.

FTP command Syntax and Options:

FTP command is straightforward and easy to use.

It has various options to use with FTP protocol and building FTP connections with multiple options.

To know more about FTP command syntax and option click here.

How to use FTP command?

There are multiple ways to use FTP command for file transmission.

Example 1 – How to connect to an FTP site

$ ftp IP/hostname

$ ftp 192.168.5.111
ftp>

Example 2 – A file download using FTP
ftp> get FILENAME

ftp> get index.html my.html
Fetching   /home/linuxconcept/index.html    to     my.html
/home/linuxconcept/index.html    100%     6534      2.3KB/s     00:02
ftp>

Example 3 – Change FTP mode to asci or binary
For ftp ASCII mode:

ftp> ascii
200 Type set to A.
ftp>

For ftp Binary mode:

ftp> binary
200 Type set to I.
ftp>

Example 4 – Uploading a file to FTP server
ftp> put filename

ftp> put index.html

Example 5 – Changing remote directory

ftp> pwd
257 “/home/linuxconcept” is current directory
ftp> cd dir123
250 CWD command successful.  “/home/linuxconcept/dir123”  is  current  directory.
ftp> pwd
257 “/home/linuxconcept/dir123”  is  current  directory.
ftp>
Satish Kumar

Satish Kumar

I am Satish Kumar, Founder of LinuxConcept. Linux and F.O.S.S enthusiast, love to work on open source platform and technologies.

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Adsense

Related Posts

The 30 most useful Linux commands

This article will introduce some practical and common Linux or Unix command , which is the Linux system administrators normally use the command . This article is not a complete list, but a brief list of commands that can be useful...

15 Practical examples of tcpdump command

15 Practical examples of tcpdump command

The tcpdump is the most essential and powerful command-line network packet sniffing tool. We use it to analyze network packets, capture or filter TCP/IP packets that transferred and received over the network on a specific network interface. It is available in almost...

15 Useful “df” Commands to Check Disk Space in Linux

15 Useful “df” Commands to Check Disk Space in Linux

There are several Linux tools available on the internet to check disk space utilization; we can use any of them. But, Linux has a best built-in command-line utility called “df”. The “df” is the short form of “disk filesystem”, we can get detailed information on used...

0 Comments

0 Comments

Submit a Comment

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

twelve − eight =

News & Updates

Join Our Newsletter

Adsense

Adsense

Adsense

Adsense