|
... organized like branches on a tree. At the bottom is the "root" directory,
with sub-directories branching off that (and sub-directories in turn can
have sub-directories). The Mac equivalent of a Unix sub-directory is a
folder within another folder.
cat Equivalent to the MS-DOS "type" command. To pause a file
every screen, type
email hosting co louth cat file |more
where "file" is the name of the file you want to see.
Hitting control-C will stop the display. Alternately,
you could type
more file
to achieve the same result. You can also use cat for
writing or uploading text files to your name or home
directory (similar to the MS-DOS "copy con" command). If
you type
cat>test
you start a file called "test." You can either write
something simple (no editing once you've finished a line and
you have to hit return at the end of each line) or upload
something into that file using your email hosting co louth communications software's
ASCII protocol). To close the file, hit control-D.
cd The "change directory" command. To change from your present
directory to another, type
cd directory
and hit enter. Unlike MS-DOS, which uses a \ to denote sub-
directories (for example: \stuff\text), Unix uses a / (for
example: /stuff/text). So to change from your present
directory to the stuff/text email hosting co louth sub-directory, you email hosting colchester would type
cd stuff/text
and then hit enter. As in MS-DOS, you do not need the first
backslash if the subdirectory comes off the directory you're
already in.
To move back up a directory tree, you would type
cd ..
followed by enter.
Note the space between the cd and the two
periods -- this is where MS-DOS users will really go nuts.
cp Copies a file.
The syntax is
cp file1 file2
which would copy file1 to file2 (or overwrite file2 with
file1).
ls This command, when followed by enter, tells you what's in the
directory, similar to the cambridge email hosting DOS dir command, except in
alphabetical order.
ls | more
will stop the listing every 24 lines -- handy if there are a
lot of things in the directory. The basic ls command does not
list "hidden" files, such as the .login file that controls
how your system interacts with Unix. To see these files, type
ls -a or ls -a | more
ls -l will tell you the size of each file in bytes and tell
you when each was created or modified.
mv Similar to the MS-DOS rename command.
mv file1 file2
will rename file1 as file2, The command can
also be used to move files between directories.
mv file1 News
would move file1 to your News directory.
rm Deletes a file.
Type
rm filename
and hit enter (but beware: when you hit enter, it's gone for
good).
WILDCARDS: When searching for, copying or deleting files, you can
use "wildcards" if you are not sure of the file's exact name.
ls man*
would find the following files:
manual, manual.txt, man-o-man.
Use a question mark when you're sure about all but one or two characters.
For example,
ls man?
would email hosting colchester find a file called mane, but not one called manual.
2.7 WHEN THINGS GO WRONG
* You send a message but get back an ominous looking message from
MAILER-DAEMON containing up to several dozen lines of computerese
followed by your message.
Somewhere in those lines you can often find a clue to what went
wrong. You might have made a mistake in spelling the e-mail ad ... |