Wildcards
The characters * and ?
The characters * and ?
The character *
is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For example, in your stuff directory, type
$HOME $> ls list*
This will list all files in the current directory starting with list... Try typing
$HOME $> ls *list
This will list all files in the current directory ending with ...list. The character ?
will match exactly one character. So ls ?ouse
will match files like house
and mouse
, but not grouse
. Try typing
$HOME $> ls ?list