alias

NAME

alias - list or set aliases

SYNOPSIS

C shell

alias [name[wordlist]]

Korn shell

alias [-d | -t [-r ] | [-x] [ name[=value] ...]

DESCRIPTION

This command is a built-in command in the C shell and the Korn shell.

C shell

Without arguments, alias(1) lists all aliases and their values. When only name is present, alias(1) lists the value of the alias specified by name. When name and wordlist are both present, alias(1) assigns wordlist as the alias of name. The wordlist argument is command and file-name substituted.

The name argument cannot be 'alias' or 'unalias'.

Korn shell

Without arguments, alias(1) lists all aliases and their values. When name only is present, alias(1) lists the value of the alias specified by name. When name and value are both present, alias(1) assigns value as the alias of name (see "Aliases" in ksh(1)).

OPTIONS

-x
Sets the export attribute of an alias, or, if no names are given, lists the aliases with the export attribute (exporting an alias currently has no effect).
-t
Indicates that tracked aliases are to be listed or set (values specified on the command line are ignored for tracked aliases).
-r
Indicates that all tracked aliases are to be reset.
-d
Causes directory aliases, which are used in tilde (~) expansion, to be listed or set (see "Tilde expansion" in ksh(1)).

SEE ALSO

unalias(1)