Datasheet

646
UNIX Commands 101
In a similar vein, you can get the space character to be accepted by a
command by adding an escape character. To escape a character, add a
backslash (\) immediately prior to the character in question. To illustrate,
try the last command with an escape character instead. Note that this time,
no quotation marks are necessary.
cd /Desktop\ Folder
You can use either quotation marks or escape characters because they’re
interchangeable.
Help is on the way!
By now, you might be wondering how a computer techno-wizard is supposed
to keep all these commands straight. Fortunately, you can find generous
documentation for nearly every command available to you. To access this
built-in help, use the man command. Using the man command (shorthand for
manual) will display a help file for any command that it knows about. For
example, to read the available help information for the ls command, simply
type man ls at the prompt. Figure 1-3 illustrates the result.
Figure 1-3:
Use the
man
command to
display help
information.
Autocompletion
To speed things along, the bash shell can automagically complete your
input for you while you type. Although the Terminal permits you to enter
commands via the keyboard, it is the shell that interprets those commands.
Many kinds of shells are available to UNIX users. The shell that Snow
54_435410-bk08ch01.indd 64654_435410-bk08ch01.indd 646 8/6/09 12:44:59 AM8/6/09 12:44:59 AM