Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux unalias Command

Linux unalias Command

Linux Command Reference Linux Command Reference

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:

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 Linux Command Reference