Clear all Linux / UNIX bash shell aliases
Q. How do I clear all UNIX bash shell aliases get cleared in one command. I’ve 20 aliases sometime I just need to delete them in a current session. How do I get rid of all of them?
A. You need to use unalias command/
unalias command syntax
unalias name
To remove alias called foo, enter
$ unalias foo
alias command with no arguments or with the -p option prints the list of aliases:
$ alias
Output:
alias ll='ls -lh' alias ls='ls --color=auto' alias vi='vim ' alias c='clear' alias d="/usr/local/bin/chkdomain $@"
Clear all Linux / UNIX bash shell aliases
It will remove NAMEs from the list of defined aliases. If the -a option is given, then remove all alias definitions.
$ unalias -a
E-mail
Print
Can't find an answer to your question? Contact us
Related Other Helpful FAQs:
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: aliases, BASH Shell, command syntax, Linux, UNIX



July 26th, 2007 at 6:46 am
Where to check common error in logs
July 27th, 2007 at 10:04 am
How to find and install a new hardware