/ factorpad.com / tech / linux-essentials / ftp-command.html
An ad-free and cookie-free website.
Beginner
Learn to automate the transfer of files at the Linux command line.
Videos can also be accessed from the Linux Essentials Playlist on YouTube.
Linux ftp Command Summary with Examples (3:29)
Our eighty-fourth word, or command to memorize is
ftp
from our category
Communication.
ftp
allows you to automate the
transfer of files.
-options | description |
---|---|
-v |
Verbose mode showing all server responses |
Recall from the last two videos, we covered data transfer from the
command line, and a new concept called Protocols and now we'll log in to a
remote system using the ftp
Protocol.
Before we start, it helps to think of commands as mini programs and
most follow this structure:
command -option(s) argument(s)
.
The ftp
command has
9 options, and the argument is the hostname, entered
like you would an http:// address in your browser, but
here use ftp:// and the hostname and optionally a
port number.
Unlike most commands, help is not available with double-dash
--help
. The
-v
option enters verbose mode showing
statistics.
So why is ftp
an important command?
Well, most people access data sets through their browser manually but
using ftp
Protocol is a good way to
automate transfers.
And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows.
Here we go. We'll log in to a public US Library of Congress ftp server. The ftp Protocol predates http I mentioned earlier, which you use in your web browser. And some servers let you log in anonymously with no password, and that's what we're doing here.
And here, if this was a private system you could enter one of about
75 different commands, but many won't work because of security
concerns, so I'll just show you a cd
to the pub
directory, to change
directories.
And last, before we end up on a government watch list, let's type
bye
to close the ftp
connection.
Okay now you know how to use ftp
.
And you know the syntax for commands, options and arguments.
One last tip about the ftp
command. So over time the ftp
has
been replaced by more secure options:
lftp
or
sftp
. Here, I simply wanted you to
see ftp
and I'll introduce other tools
shortly.
Okay, thanks for visiting today. I hope this was a helpful
introduction to the ftp
command.
For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
If you support my effort to bring you free content with non-invasive advertising, please consider supporting in some way.
traceroute
command, hit Back.wget
. Click Next./ factorpad.com / tech / linux-essentials / ftp-command.html
A newly-updated free resource. Connect and refer a friend today.