home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: name Chapter 4
The Bourne Shell and Korn Shell
Next: Reference: autoload





] [







Korn shell only. Assign a shorthand name as a synonym for cmd . If =' cmd ' is omitted, print the alias for name ; if name is also omitted, print all aliases. See also unalias . 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).

autoload='typeset -fu'
echo='print -'
false='let 0'
function='typeset -f'
hash='alias -t'
history='fc -l'
integer='typeset -i'
nohup='nohup '
pwd='print -r - $PWD'
r='fc -e -'
type='whence -v'



Create a tracked alias for a UNIX command name . 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`'

Previous: Reference: name UNIX in a Nutshell: System V Edition Next: Reference: autoload
Reference: name Book Index Reference: autoload

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System