This tutorial explains Linux “unalias” command, options and its usage with examples.
The unalias command is used to remove entries from the current user’s list of aliases.
unalias removes aliases created during the current login session. It also suppresses permanent aliases; however, they are affected only for the current login session and are restored after the user logs in again.
unalias can simultaneously accept any number of alias names as arguments (i.e., input data).
unalias [-a] [alias_name(s)]
This option tells unalias to remove all aliases for the current user for the current shell for the current session, but it likewise does not affect permanent aliases for future sessions.
For example, if a user had an alias named p for the pwd (i.e., present working directory) command, such alias could be removed with the following:
$ unalias p
Now if one tries to run a command p by entering p at the terminal prompt, one will get an error of Command Not Found.
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.