Skip to content


Temporarily Disable Aliases in Bash

Shell aliases are commonly used to replace a command with a different or longer string. Some very common bash shell aliases are: (taken from my Debian 5.0 .bashrc) alias ll='ls -l'<br /> alias la='ls -A'<br /> alias l='ls -CF'<br /> alias ls='ls --color=auto'<br /> alias dir='dir --color=auto'<br /> alias vdir='vdir --color=auto'<br /> alias grep='grep --color=auto'<br /> alias fgrep='fgrep --color=auto'<br /> alias egrep='egrep --color=auto'<br /> As you can see, these aliases are assigning either an alternate command for a command + argument, or defining that a default command should work with extended options. Many of these are commented out by default, but you can edit your .bashrc file and remove the comments if you like. Now the question remains, if I have a command set to an alias, how can I run the command *without* the alias additions? There are two methods. Method 1 The system comes with a unalias command. Read more