Linux unalias Command
The Linux unalias command is used to remove aliases.
unalias is a built-in shell command that can remove alias settings.
Syntax
unalias
Parameters
- -a : Removes all aliases.
Examples
Setting an alias for a command
[root@.com ~]# alias lx=ls
[root@.com ~]# lx
anaconda-ks.cfg Desktop install.log install.log.syslog qte
Removing an alias
[root@.com ~]# alias lx // Display the alias
alias lx='ls'
[root@.com ~]# unalias lx // Remove the alias
[root@.com ~]# lx
-bash: lx: command not found
Note: After removing an alias, attempting to use that alias will result in a "command not found" error.
Related Commands
Recommended Services:
ByteArk Coding Plan supports mainstream large models including Doubao, GLM, DeepSeek, Kimi, MiniMax, etc. Official direct supply, stable and reliable. Β₯9.9/month -
iFlytek Star Coding Plan includes free model call credits for DeepSeek, GLM, Kimi, MiniMax, a one-stop experience and deployment platform. Configuration Guide Β₯3.9/month - Activate Now
Click to Share Notes
Category Navigation
Python / Data Science
AI / Intelligent Development
Frontend Development
- HTML Tutorial
- HTML5 Tutorial
- CSS Tutorial
- CSS3 Tutorial
- JavaScript Tutorial
- HTML DOM Tutorial
- TypeScript Tutorial
- AJAX Tutorial
- JSON Tutorial
- Tailwind CSS Tutorial
- Bootstrap 4 Tutorial
- Bootstrap 5 Tutorial
- Foundation Tutorial
- Vue.js Tutorial
- Vue 3 Tutorial
- React Tutorial
- Next.js Tutorial
- AngularJS Tutorial
- Angular Tutorial
- jQuery Tutorial
- jQuery UI Tutorial
- jQuery EasyUI Tutorial
- ECharts Tutorial
- Chart.js Tutorial
- Highcharts Tutorial
- Google Maps Tutorial
- SVG Tutorial
YouTip