Home » Linux Command » Linux ftp command Help and Examples

Linux ftp command Help and Examples

Last updated Sep 3, 2021

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

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

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

ftp> ascii
200 Type set to A.

For ftp Binary mode:

ftp> binary
200 Type set to I.

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.

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...

15 Practical examples of echo command

15 Practical examples of echo command

If you are writing a bash script, you know echo command very well. It is use to display text lines on an output screen or a file. The echo command is the most common command used by all Linux users, and it is built-in Linux command. echo command syntax: echo...

Follow Us

Our Communities

More on Linux Command

The Ultimate Managed Hosting Platform
Load WordPress Sites in as fast as 37ms!



Submit a Comment

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

eight − two =