
IMPORTANT: No News Is Good News
The shell is not verbose: in contrast to some graphical user interfaces, it usually
does not provide confirmation messages when commands have been executed.
Messages only appear in case of problems or errors.
Also keep this in mind for commands to delete objects. Before entering a
command like
rm
for removing a file, you should know if you really want to
get rid of the object: it will be deleted irretrievably, without enquiry.
Using Commands without Options
Look at the structure of commands using a simple example: the
ls
command, used to
list the contents of a directory. The command can be used with or without options. En-
tering the plain
ls
command shows the contents of the current directory:
Figure 17.2
The ls Command
Unlike in other operating systems, files in Linux may have a file extension, such as
.txt
, but do not need to have one. This makes it difficult to differentiate between files
and folders in this output of the
ls
. By default, the colors can give you a hint: directories
are usually shown in blue, files in black.
Using Commands with Options
A better way to get more details about the contents of a directory is using the
ls
com-
mand with a string of options. Options modify the way a command works so that you
can get it to do specific tasks. Options are separated from the command with a blank
Working with the Shell
333
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......