Bash Aliasing Bypass an alias


Example

Sometimes you may want to bypass an alias temporarily, without disabling it. To work with a concrete example, consider this alias:

alias ls='ls --color=auto'

And let's say you want to use the ls command without disabling the alias. You have several options:

  • Use the command builtin: command ls
  • Use the full path of the command: /bin/ls
  • Add a \ anywhere in the command name, for example: \ls, or l\s
  • Quote the command: "ls" or 'ls'