February 2001
Beginner to intermediate
448 pages
9h 2m
English
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 ...
Read now
Unlock full access