YouTip LogoYouTip

Linux Comm Unalias

Linux unalias Command body { font-family: Arial, sans-serif; line-height: 1.6; margin: 0; padding: 20px; background-color: #f5f5f5; } .container { max-width: 1200px; margin: 0 auto; background: white; padding: 30px; box-shadow: 0 0 10px rgba(0,0,0,0.1); } h1, h2, h3 { color: #333; } .breadcrumb { margin-bottom: 20px; padding: 10px; background: #e8e8e8; border-radius: 5px; } .breadcrumb a { color: #0066cc; text-decoration: none; margin-right: 5px; } .breadcrumb a:hover { text-decoration: underline; } .breadcrumb span { color: #666; } .code-block { background: #2d2d2d; color: #f8f8f2; padding: 15px; border-radius: 5px; overflow-x: auto; margin: 15px 0; font-family: Consolas, Monaco, 'Andale Mono', monospace; } .note { background: #fff8e1; border-left: 4px solid #ffc107; padding: 10px; margin: 15px 0; } .example { background: #f8f9fa; border: 1px solid #ddd; padding: 15px; border-radius: 5px; margin: 15px 0; } a { color: #0066cc; } .ad-container { margin: 20px 0; padding: 15px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 5px; } .footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid #ddd; color: #666; font-size: 0.9em; } .btn { display: inline-block; padding: 8px 16px; background: #007bff; color: white; border-radius: 4px; text-decoration: none; } .btn:hover { background: #0056b3; } table { border-collapse: collapse; width: 100%; margin: 15px 0; } th, td { border: 1px solid #ddd; padding: 8px; text-align: left; } th { background-color: #f2f2f2; }

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

  • alias - Create or display aliases
  • Shell - Shell scripting fundamentals
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

← Os FdopenOs Fdatasync β†’