Sometimes I want to ignore an alias. That might seem to make no sense because one of the reasons (the reason?) to use an alias (like ls='ls --color'
) is creating shortcuts. But, in some cases I need to use the real command, with its real output. In my case, it is because I share the same username
with other people on some systems (yes, it is pretty awful, but that is another issue).
To do this, precede the command with a backslash: ‘\’. For example:
$ \ls
Update: As loood has said in the comments, typing the command in quotes has the same result.
$ "ls"
Despite years of using UNIX and Linux I never knew that. Great tip, thanks!
I did not know it until the “situation” forces me to find a solution ;)
Nice. one less keystroke then putting the command in quotes.