alias

Format: alias [ string1 [ string2 ] ]

Translates string1, when encountered in a command, into string2. string1 only translates as a unit and not a part of a larger word. Substitution is only performed once, so references to other aliases are ignored.

There are three forms of the alias command:
Modifier Meaning
alias
Lists all aliases.
alias string1
Lists alias, if any, for string.
alias string1 string2
Value of string2 becomes the alias string1.

For example, entering:
alias sh showdef

allows you to type sh instead of showdef when using the showdef command.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.