|
... "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 buying product category product sure
you want it. Despite this, 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 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. buying product product category 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
buying product category ls
and hit enter to get the file listing for that particular directory.
To move back buying product category 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
interest. Alternately, if you already know the directory path of the
file you want (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 system
administrator to store the programs that run the ftp system. Lost+found
is another directory that looks interesting but actually never has
anything of public interest in them.
Before, you saw how to use archie. From buying product category 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 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 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 product 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,
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 buying product category 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 tiscali product A Unix version of ZIP. ... |