Aliases

Aliases are pseudonyms that are used to represent the corresponding commands for which they are set. The need for aliases arises when you want to set a shortcut for frequently used commands that are lengthy. For example, you can just type c rather than clear to clear the terminal screen, if you have set an alias for the clear command to c. An alias defined in a parent shell is available to all its child shells.

If the alias name consists of spaces, then it should be enclosed in quotes. The alias feature is not available in the default Bourne shell, but the C shell and the Korn shell support this feature.

To display the existing aliases, use the alias command, as follows:

 # alias autoload='typeset –fu' command='command' functions='typeset ...

Get Special Edition Using® Solaris™ 9 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.