Linux unalias command
The Linux unalias command is used to delete aliases.
unalias is a shell built-in command that can delete alias settings.
Syntax
unalias [-a][别名]
Parameters:
- -a Delete all aliases.
Examples
Set an alias for a command
[root@example.com ~]# alias lx=ls [root@example.com ~]# lx anaconda-ks.cfg Desktop install.log install.log.syslog qte
Delete an alias
[root@example.com ~]# alias lx //显示别名 alias lx='ls' [root@example.com ~]# unalias lx //删除别名 [root@example.com ~]# lx -bash: lx: command not foundOther extensions
Linux Command Encyclopedia