Your Internet Consultant - The FAQs of Life Online

6.4. How do I receive a file with FTP?

Once you're connected to an FTP site and have found the files you want, you can use the following commands to retrieve the files in which you are interested.
Note: Unless your computer is directly connected to the Internet (that is, if you are connected through an intermediary remote host), software for use on your home computer needs to be FTPed to your local host, then downloaded to your PC using Xmodem, Zmodem, Kermit, or some other transfer protocol--a two-step process).

Here's a sample FTP session:

$ ftp mac.archive.umich.edu
Connected to mac.archive.umich.edu.
220 pogue.admin.lsa.umich.edu FTP server (ULTRIX Version 4.1 Tue Mar 19
00:38:17 EST 1991) ready.
Name (mac.archive.umich.edu:waffle): anonymous
331 Guest login ok, send ident as password.
Password:
230 Guest login ok, access restrictions apply.
ftp> lcd /nobak/waffle
Local directory now /hustle/stuff/nobak/waffle
ftp> cd /mac
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening data connection for /bin/ls (192.160.13.1,1268) (0 bytes).
.AppleDouble
.cache
00help
00introduction
00ls-lRfile
00newfiles
development
game
graphics
hypercard
incoming
misc
powerpc
sound
system.extensions
util
226 Transfer complete.
168 bytes received in 0.05 seconds (3.3 Kbytes/s)
ftp> cd misc/update
250 CWD command successful.
ftp> ls ram*
200 PORT command successful.
150 Opening data connection for /bin/ls (192.160.13.1,1278) (0 bytes).
ramdoublerup1.01.cpt.hqx
226 Transfer complete.
remote: ram*
26 bytes received in 0.021 seconds (1.2 Kbytes/s)
ftp> get ramdoublerup1.01.cpt.hqx
200 PORT command successful.
150 Opening data connection for ramdoublerup1.01.cpt.hqx (192.160.13.1,1280)
(79182 bytes).
226 Transfer complete.
local: ramdoublerup1.01.cpt.hqx remote: ramdoublerup1.01.cpt.hqx
79182 bytes received in 50 seconds (1.5 Kbytes/s)
ftp> quit

Table of Contents | Previous Section | Next Section