Easy Tutorial
❮ Linux Comm Uname Linux File Attr Permission ❯

Linux unalias Command

Linux Command Manual

The Linux unalias command is used to remove aliases.

unalias is a shell built-in command that can delete alias settings.

Syntax

unalias [-a][alias]

Parameters:

Example

Set an alias for a command:

[[email protected] ~]# alias lx=ls
[[email protected] ~]# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte

Remove the alias:

[[email protected] ~]# alias lx // Display the alias
alias lx='ls'
[[email protected] ~]# unalias lx // Remove the alias
[[email protected] ~]# lx
-bash: lx: command not found

Linux Command Manual

❮ Linux Comm Uname Linux File Attr Permission ❯