Sunday, 23 April 2017

unalias command usage and example

unalias

The unalias command purpose is to remove entries from the current user's list of aliases. Unalias can simultaneously accept any number of alias names as arguments. Also we can remove an alias by using the alias command to create a new alias with the same name. This overwrites the existing alias with that name. If you want to remove an alias permanently, you have to remove it from your bash file.

Syntax

unalias  [alias_name]

Option
-a
There is only one option which removes all aliases for the current user for the current shell for the current session, but it does not affect permanent aliases for future sessions.

Example
If there is an alias named c for the clear command, such alias could be removed with the following
unalias c
Now if you try to press c it won’t provide you the output of clear command.

No comments:

Post a Comment