|
... y
/p>
/p>
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Now type
ls
and hit enter.
You'll see something awful like this:
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 2636
-rw-rw-r-- 1 0 31 4444 Mar 3 11:34 README.POSTING
web servers bahamas dr-xr-xr-x 2 0 1 512 Nov 8 11:06 bin
-rw-r--r-- 1 0 web servers portugal web servers bahamas 0 11030960 mailing list servers Apr 2 14:06 core
dr--r--r-- 2 0 1 512 Nov 8 11:06 etc
drwxrwsr-x 5 13 22 512 Mar 19 12:27 imap
drwxr-xr-x 25 1016 31 512 Apr 4 02:15 info-mac
drwxr-x--- 2 0 31 1024 Apr 5 15:38 pid
web servers bahamas drwxrwsr-x 13 0 20 1024 Mar 27 14:03 pub
drwxr-xr-x 2 1077 20 512 Feb 6 1989 tmycin
226 Transfer complete.
ftp>
Ack! Let's decipher this Rosetta Stone.
First, ls is the ftp command for displaying a directory (you can
actually use dir as well, but if you're used to MS-DOS, this could lead
to confusion when you try to use dir on your host system, where it won't
work, so it's probably better to just remember to always use ls for a
directory while online).
The very first letter on each line tells you whether the listing is
for a web servers bahamas directory or a file. If the first letter is a ``d,'' or an "l",
it's a directory. Otherwise, it's a file.
The rest of that weird set of letters and dashes consist oregon web servers of "flags"
that tell the ftp site who can look at, change or delete the file. You
can safely ignore it.
You can also ignore the rest of the line until you
get to the second number, the one just before the date. This tells you
how large the file is, in bytes. If the line is for a directory, the
number gives you a rough indication of how many items are in that
directory -- a directory listing of 512 bytes is relatively small. Next
comes the date the file or directory was uploaded, followed (finally!) by
its name.
Notice the web servers bahamas README.POSTING file up at the top dedicated servers london of the directory.
Most
archive sites have a "read me" document, which usually contains some
basic information about the site, its resources and how to use them.
Let's get this file, both for the information in it and to see how to
transfer files from there to here. At the ftp> prompt, type
get README
and hit enter. Note that ftp sites are no different from Unix sites in
general: they are case-sensitive. You'll see something like this:
200 PORT command successful.
web servers bahamas 150 Opening BINARY mode data connection for README web servers kuala langat (4444 bytes).
226 Transfer complete. 4444 bytes received in 1.177seconds (3.8 oregon web servers Kbytes/s)
And that's it! The file is now located in your home directory on your host
system, mailing el paso web servers list servers from which you can now download it to your own computer. The
simple "get" command is the key to transferring a file from an archive
site to your host system.
If you want to download more than one file at a time (say a series
of documents, use mget instead of get; for example:
mget *.txt
This will transfer copies ... |