Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 353

Table of Contents

Advertisement

d Check this by entering ls -l /tmp/test. The file myfile.txt
should appear in the list of contents for /tmp/test.
To list the contents of home directories of other users, enter ls ~username . In the
example directory tree in
(page 350), one of the sample users is tux. In this case, ls ~tux would list the contents
of the home directory of tux.
NOTE: Handling Blanks in Filenames or Directory Names
If a filename contains a space, either escape the space using a back slash (\)
in front of the blank or enclose the filename in single or double quotes. Other-
wise Bash interprets a filename like My Documents as the names of two files
or directories. The difference between single and double quotes is that variable
expansion takes place within double quotes. Single quotes ensure that the shell
sees the quoted string literally.
18.1.4 Useful Features of the Shell
Entering commands in Bash can include a lot of typing. In the following, get to know
some features of the Bash that can make your work a lot easier and save a lot of typing.
History and Completion
By default, Bash "remembers" commands you have entered. This feature is called his-
tory. To repeat a command that has been entered before, press
command appears at the prompt. Press
entered commands. Use
You can edit the selected command, for example, changing the name of a file, before
you execute the command by pressing
cursor to the desired position using the arrow keys and start typing.
Completing a filename or directory name to its full length after typing its first letters
is another helpful feature of Bash. To do so, type the first letters then press
filename or path can be uniquely identified, it is completed at once and the cursor moves
to the end of the filename. You can then enter the next option of the command, if nec-
Figure 18.4, "Excerpt from a Standard Directory Tree"
to move forward through the list of previously
+
to search in the history.
Ctrl
R
. To edit the command line, just move the
Enter
until the desired
. If the
→|
Working with the Shell
353

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents