Linux unalias Command
The Linux unalias command is used to remove aliases.
unalias is a shell built-in command that can remove alias definitions.
Syntax
unalias [-a][别名]
Parameters:
- -a Remove all aliases.
Example
Set an alias for a command
[root@runoob.com ~]# alias lx=ls
[root@runoob.com ~]# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte
Remove an alias
[root@runoob.com ~]# alias lx //显示别名
alias lx='ls'
[root@runoob.com ~]# unalias lx //删除别名
[root@runoob.com ~]# lx
-bash: lx: command not found
Linux Command Reference