|
... 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 README.POSTING file up at the top 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.
150 Opening mi web service BINARY mode data connection for README (4444 bytes).
226 Transfer complete.
4444 bytes received in 1.177seconds (3.8 mi web service Kbytes/s)
And that's it! The file is now located in your home directory on your host
system, from which you can now download it to your own web service colchester 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 of every file ending with .txt in the given
directory. Before each file is copied, you'll be asked if you're sure
you want it. Despite this, mi web service mget could still save you considerable
time -- you won't have to type in every single file name. If you want to
save even more time, and are sure you really want ALL of the bahamas web service given files,
type
prompt
before you do the mget command. This will turn off the prompt, and all
the files will be zapped right into your home directory.
There is one other command to keep in mind. If you want to get a
copy of a computer program, type
bin
and hit enter.
This tells the ftp site and your host site that you are
sending a binary file, i.e., a program. Most ftp sites now use binary
format as a default, but it's a good idea to do this in case you've
connected to one of the few that doesn't.
To switch to a directory, type
cd directory-name
(substituting the name of the directory you want to access) and hit
enter. Type
mi web service ls
and hit enter to get the file listing for that particular directory.
To move back up the directory tree, type
cd ..
(note the space between the d and the first period) and hit enter. Or
you could type
cdup
and hit enter.
Keep doing this until you get to the directory of web to host service
interest.
Alternately, if you already know the directory path of the
file you want bahamas web service (from our friend archie), after you connect, you could
simply type
get directory/subdirectory/filename
On many sites, files meant for public consumption are in the pub
or public directory; sometimes you'll see an info directory.
Almost every site has a bin directory, which at first glance
sounds like a bin in which interesting stuff might be dumped. But it
actually stands for "binary" and is simply a place for the mi web service system
administrator to store the programs that run the ftp system. Lost+found
is another directory that looks interesting but actually web service seixal never has
anything of public interest in them.
Before, you saw how to use archie. From our example, you can see
that some system administrators go a little berserk when naming files.
Fortunately, there's a way for you to rename the file as it's being
transferred. Using our archie example, you'd type
get zterm-sys7-color-icons.hqx zterm.hqx
and hit enter. Instead of having to deal web service logan constantly with a file called
zterm-sys7-color-icons.hqx, you'll now have one called, simply,
zterm.hqx.
Those last three letters bring up something else: Many program files
are compressed to save on space and transmission time. In order to
actually use them, you'll have to use an un-compress program on them mi web web to host service service first.
7.4 ODD LETTERS -- DECODING FILE ENDINGS
There are a wide variety of compression methods in use. You can
tell which method was used by the last one to three letters at the end of
a file. Here are some of the more common ones and what you'll need to un-
compress the files they create (most of these decompression programs can
be located through archie).
.txt or .TXT By itself, this means the file is a document, rather than a
program.
.ps or .PS A PostScript document (in Adobe's page description
language). You can print this file on any PostScript
capable printer, or use a previewer, like GNU project's
GhostScript.
.doc or .DOC Another common "extension" for documents. No decompression
is needed, unless it is followed by:
.Z This indicates a Unix compression method. To uncompress,
web template service type
uncompress filename.Z
and hit enter at your host system's command line.
If the
file is a compressed text file, you can read it online by
instead typing
zcat filename.txt.Z |more
u16.zip is an MS-DOS program that will let you download
such a file and uncompress it on your own computer. The
Macintosh equivalent program is called MacCompress (use
archie to find these).
.zip or .ZIP These indicate the file has been compressed with a common
MS-DOS compression program, known as PKZIP (use archie to
find PKZIP204.EXE). Many Unix systems will let you un-ZIP
a file with a program called, well, unzip.
.gz A Unix v ... |