|
... 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 internet service janesville
folder within another folder.
cat Equivalent to the MS-DOS "type" command. To pause a file
every screen, type
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 crawley internet service have to hit return at the end of each line) or upload
something into that file using your 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 sub-directory, you 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 DOS dir command, except in
internet service janesville 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 internet service janesville 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, janesville internet marketing consultant 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
greenwood internet service and hit enter (but beware: when you hit enter, it's gone for
good).
WILDCARDS: internet service greenwood When internet service janesville 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 find a file called mane, but not one called manual.
internet service janesville
2.7 WHEN THINGS GO WRONG
* You send a message but get back an ominous looking message from
MAILER-DAEMON containing up to several doz ... |