The easiest way to copy files from one disk to another is to use the cp command. However, often I am interested in copying files from one computer to another. The ftp command uses the File Transfer Protocol (FTP) to transfer data over a network connection.
To use ftp you open a connection to a remote computer and log onto that computer that can't access each others hard drives. The remote computer runs its own version of ftp, but you are in control of it. Within the ftp program you can list the files in your remote computer's directory, get copies of files on the remote computer, put copies of files from your computer onto the remote computer, and even delete files on the remote computer.
Here is an example of a FTP session:
ftp baboon (1)
Connected to baboon.ecn.purdue.edu.
220 baboon.ecn.purdue.edu FTP server (Version 4.178 Tue Jun 18 13:30:39
EST 1991) ready.
Name (baboon:taylor): taylor (2)
331 Password required for taylor.
Password: xxxxx
230 User taylor logged in.
ftp> cd tex/manual (3)
250 CWD command successful.
ftp> get chap1.tex chap1.tex.bak (4)
200 PORT command successful.
150 ASCII data connection for chap1.tex (8612 bytes).
226 ASCII Transfer complete.
local: chap1.tex.bak remote: chap1.tex
8848 bytes received in 0.45 seconds (19 Kbytes/s)
ftp> quit (5)
221 Goodbye.
A short explanation of the available commands can be coaxed onto your screen by typing help at the ftp> prompt.