Aliases
Aliases are command macros and are used as shorthand for other commands, especially frequently-used ones.
Alias Commands
alias | display a list of aliases and their values |
alias name | display the value for alias name |
alias name='value' | create an alias name set to value |
alias –t | display a list of tracked aliases |
alias –t name='value' | create a tracked alias name set to value |
unalias name | remove the alias name |
Some Preset Aliases
Alias | Value | Definition |
---|---|---|
autoload | typeset –fu | define an autoloading function |
echo | print – | display arguments |
functions | typeset –f | display list of functions |
hash | alias –t – | display list of tracked aliases |
history | fc –l | list commands from history file |
integer | typeset –i | declare integer variable |
r | fc –e – | re-execute ... |
Get Korn Shell: Unix and Linux Programming Manual, Third Edition, The 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.