Korn shell only. Assign a shorthand
as a synonym for
is omitted, print the alias for
is also omitted, print all aliases.
The aliases below are built into the Korn shell.
Some use names of existing
Bourne shell or C shell commands (which points
out the similarities among the shells).
pwd='print -r - $PWD'
r='fc -e -'
Create a tracked alias for a UNIX command
The Korn shell remembers the full pathname of the command,
allowing it to be found more quickly and to be issued from any directory.
If no name is supplied, current tracked aliases are listed.
Tracked aliases are the same as hashed commands in the Bourne shell.
Export the alias; it can now be used in shell scripts and other
subshells. If no name is supplied, current exported aliases are listed.
alias dir='basename `pwd`'