See how `unalias` restores original commands and when removing aliases saves you from surprises. 20.05.2026 | reading time: 2 min Aliases shorten commands but sometimes hide what the system really runs; `unalias` is the shell builtin that deletes those shortcuts so the original command behavior returns, and this short guide shows how to apply it safely. Quick Demo Try this in an interactive shell: ``` $ alias ls='ls --color=auto' $ type ls ls is aliased to 'ls --color=auto' $ unalias ls $ type ls ls is /bin/ls $ alias ll='ls -l' $ alias gs='git status' $ alias ll='ls -l' gs='git status' $ unalias -a $ alias # no output ``` When It Matters `unalias` only changes the current shell session; to remove persistent aliases edit your startup files like `~/.bashrc` or `~/.zshrc`, and to bypass an alias temporarily use `\ls`, `command ls`, or the full path `/bin/ls`; note that most noninteractive scripts do not expand aliases unless explicitly enabled, so `unalias` is usually an interactive-shell tool. Nearby Commands Useful companions are `alias` to list and set aliases, `type` to inspect whether a name is an alias or a binary, and `command` or a leading backslash to invoke the real command without removing the alias; `source` reloads startup files after you edit them. Wrapping Up Use `unalias` to get predictable command behavior and clean up unexpected shortcuts, and remember to remove or edit aliases in your shell startup files for a permanent fix; if you want to deepen your Linux skills, consider exam preparation like CompTIA Linux+ or LPIC-1 with intensive courses at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities scripting troubleshooting security