Transfer Files Over the Internet
$ ftp ftp.december.com
Connected to ftp.december.com.
220-
220-Welcome to december.com!
220-
220 localhost FTP server (Version wu-2.5.0(1)
Wed Aug 25 18:14:49 GMT 1999) ready.
Name (ftp.december.com:): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> help
Commands may be abbreviated. Commands are:
! debug mdir sendport site
$ dir mget put size
account disconnect mkdir pwd status
append exit mls quit struct
ascii form mode quote system
bell get modtime recv sunique
binary glob mput reget tenex
bye hash newer rstatus tick
case help nmap rhelp trace
cd idle nlist rename type
cdup image ntrans reset user
chmod lcd open restart umask
close ls prompt rmdir verbose
cr macdef passive runique ?
delete mdelete proxy send
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 9
drwxr-xr-x 8 781 622 1024 Dec 20 1999 .
drwxr-xr-x 8 781 622 1024 Dec 20 1999 ..
-rw-r--r-- 1 781 622 26 Mar 15 1998 .banner
d--x--x--x 2 root root 1024 Apr 5 1997 bin
drwxr-xr-x 2 root root 1024 Apr 5 1997 dev
d--x--x--x 2 root root 1024 Apr 5 1997 etc
drwx------ 2 781 622 1024 Sep 20 15:00 incoming
drwxr-xr-x 2 root root 1024 Dec 20 1999 lib
drwxrwxr-x 2 781 622 1024 Sep 20 15:01 pub
226 Transfer complete.
ftp> cd pub
250 CWD command successful.
ftp> get box.dat
local: box.dat remote: box.dat
200 PORT command successful.
150 Opening BINARY mode data connection for box.dat (442 bytes).
226 Transfer complete.
442 bytes received in 0.011 secs (39 Kbytes/sec)
ftp> quit
221-You have transferred 442 bytes in 1 files.
221-Total traffic for this session was 1004 bytes in 1 transfers.
221-Thank you for using the FTP service on localhost.
221 Goodbye.
$ ls
box.dat
$