|
...
differently enough from the similarly named DOS command that it will drive
you crazy. Also, unlike MS-DOS, Unix is case sensitive -- if you type
commands or directory names in the wrong case, you'll get an error message.
If you're used to working on a Mac, you'll have to remember that Unix
stores files in "directories" rather than "folders." Unix directories are
organized janesville internet marketing consultant like branches on a tree.
bramley internet marketing consultant 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 kansas internet marketing consultant 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 janesville internet marketing consultant type
cat>test
you start a file called "test." You can either write
kansas internet marketing consultant something simple janesville internet marketing consultant (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 communications software's
ASCII protocol). To close the file, hit control-D.
cd The "change directory" command.
To change from your present
san francisco internet marketing consultant 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 bramley internet marketing consultant 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, internet marketing consultant kent 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
alphabetical order.
ls | internet marketing consultant kent more
janesville internet marketing consultant will stop the listing every 24 lines -- handy i ... |