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

Table of Contents

Advertisement

essary. If the filename or path cannot be uniquely identified (because there are several
filenames starting with the same letters), the filename or path is only completed up to
the point where again several options are possible. You can then obtain a list of them
by pressing
path then try completion again by pressing
with the help of
to enter really exists (and you can be sure of getting the spelling right).
Wild Cards
Another convenience offered by the shell is wild cards for pathname expansion. Wild
cards are characters that can stand for other characters. There are three different types
of these in Bash:
?
Matches exactly one arbitrary character
*
Matches any number of characters
[set]
Matches one of the characters from the group specified inside the square brackets,
which is represented here by the string set. As part of set you can also specify
character classes using the syntax [:class:], where a class is one of alnum,
alpha, ascii, etc.
Using ! or ^ at the beginning of the group ([!set]) matches one character other
than those identified by set.
Assuming that your test directory contains the files Testfile, Testfile1,
Testfile2, and datafile.
• The command ls Testfile? lists the files Testfile1 and Testfile2.
• The command ls Testfile? lists the files Testfile1 and Testfile2.
• With ls Test*, the list also includes Testfile.
• The command ls *fil* shows all the sample files.
354
Installation and Administration
a second time. After this, you can enter the next letters of the file or
→|
, you can simultaneously check whether the file or path you want
→|
. When completing filenames and paths
→|

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents