O'Reilly logo

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required