unalias
Official Description
Removes alias definitions.
Syntax
unalias alias-name... | [-a]
Options
-a removes all alias definitions.
Oddities
The C shell has its own version of this command.
Example
$ alias cat=ls # Make two aliases $ alias p=ps $ $ alias # Display alias list 2d='set -f;_2d' autoload='typeset -fu' cat=ls command='command ' fc=hist float='typeset -E' functions='typeset -f' hash='alias -t --' history='hist -l' integer='typeset -i' nameref='typeset -n' nohup='nohup ' p=ps r='hist -s' redirect='command exec' stop='kill -s STOP' suspend='kill -s STOP $$' times='{{time;} 2>&1;} ' type='whence -v' $ $ unalias –a # Blow them all away $ $ alias # Gone $
Get Korn Shell Programming by Example 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.