Exiting the Shell
To exit the shell when you are done, type exit or press Ctrl+D.
You??™ve just seen a few commands that can help you quickly familiarize yourself with your Linux
system. There are hundreds of other commands that you can try. You??™ll find many in the /bin
and /usr/bin directories, and you can use ls to see a directory??™s command list: ls /bin, for
example, results in a list of commands in the /bin. Then use the man command (for example,
man hostname) to see what each command does. Administrative commands are also in /sbin
or /usr/sbin directory.
NOTE
44
Linux First Steps Part I
Using the Shell in Linux
When you type a command in a shell, you can include other characters that change or add to how
the command works. In addition to the command itself, these are some of the other items that you
can type on a shell command line:
Options??”Most commands have one or more options you can add to change their
behavior. Options typically consist of a single letter, preceded by a dash. You can also
often combine several options after a single dash. For example, the command ls -la
lists the contents of the current directory. The -l asks for a detailed (long) list of information,
and the -a asks that files beginning with a dot (.) also be listed.
Pages:
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181