alias

Official Description

Defines or displays aliases.

Syntax

alias [-t] [alias-name[=string...]]

Options

-t establishes a tracked alias, providing faster alias translation. Allowed only if the trackall shell option is set (set -h or set -o trackall).

Oddities

Some implementations provide a -x option, enabling the exporting of aliases. This also enables aliases to be accessible in subshells.

Some implementations provide a -p option, which causes the word “alias” to appear before each alias name displayed.

Aliasing is performed when scripts are read, not while they are executed. Therefore, for an alias to take effect, the alias definition command must be executed before the command that references the alias is read.

Aliases can be used to redefine ...

Get Korn Shell Programming by Example 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.