Go to the previous, next section.
UNIX provides another way to minimize key strokes called
command completion. It allows you to type the first letter or
letters of a file name followed by the esc key and have UNIX
return the only file name that matches the letter or letters you
typed. This feature is supported by some csh
's, bash
,
tcsh
, and ksh
. If more than one file name matches, the
shell will wait for more letters. Command completion also allows you
to type the first letter or letters of a file name and then type
ctrl-d (for csh
's), causing UNIX to return all the file
names that match the letters.
To use it on BSD systems, your `.cshrc' login file must include the command that makes the esc key and ctrl-d work. To include this command if it's not already in your `.cshrc' file, do the following. Invoke an editor and bring up your `.cshrc' file. Move to the end of the file, and insert the following line:
set filec
Then save the file and leave the editor. File completion is not
available under DYNIX unless you use the bash
shell.
The man pages described in section Man Command have a page called
csh
that contains additional information on completing
filenames. To find this information, call up that man page and then
search for the pattern `complete'.
Go to the previous, next section.