Latest web development tutorials

Linux unalias command

Linux command Daquan Linux command Daquan

Linux unalias command is used to remove an alias.

unalias the shell built-in commands, you can delete the alias settings.

grammar

unalias [-a][别名]

Parameters:

  • -a Remove all aliases.

Examples

Command to set the alias

[[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 found

Linux command Daquan Linux command Daquan