Aliases
The term "alias" means another name for something. Another feature of
the C Shell allows you to give new, short names for long, frequently
used commands with the "alias" command.
- alias newname 'long command string'
For example, if you frequently use the "find" command to look through
all your directories to find files named 'core', you could make the
following alias:
- alias find_core 'find . -name core -print'
Now you have a new shorter command ("find_core") that you can use to
find 'core' files.
You can put the "alias" command in your '.cshrc'
file so that you can use them every time you
log in. Aliases can be removed with the
"unalias" command.
Click here to
go to the next section.
Or click here to go to the
top of the chapter.