This tutorial explains Linux “unalias” command, options and its usage with examples.
DESCRIPTION
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).
SYNOPSIS
unalias [-a] [alias_name(s)]
OPTION :
-a
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.
EXAMPLE
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.
- Check Linux Books
- Check Information Technology Books
- Apply for Programming Internship
- Practice Programming MCQs