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
[[email protected] ~]# alias lx=ls [[email protected] ~]# lx anaconda-ks.cfg Desktop install.log install.log.syslog qte
Delete an alias
[[email protected] ~]# alias lx //显示别名 alias lx='ls' [[email protected] ~]# unalias lx //删除别名 [[email protected] ~]# lx -bash: lx: command not foundOther extensions
Linux Command Encyclopedia