Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 610 Bytes

ignore-the-alias-when-running-a-command.md

File metadata and controls

29 lines (19 loc) · 610 Bytes

Ignore The Alias When Running A Command

I have a number of shell aliases set up to override one command with another. For instance, I want to run bat anytime I type cat, so I have alias cat=bat in my shell configuration.

But what if I were to ever want to run cat instead of bat?

Aliases can be ignored several ways:

  1. Precede the command with a backslash.
$ \cat
  1. Wrap the command in quotes.
$ 'cat'
  1. Pass the command to command.
$ command cat

source