cmd, shell

Ignoring an alias

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"

3 Comments

  • On 11.27.09 Mark said:

    Despite years of using UNIX and Linux I never knew that. Great tip, thanks!

  • On 11.27.09 rafacas said:

    I did not know it until the “situation” forces me to find a solution ;)

  • On 12.02.09 loood said:

    Nice. one less keystroke then putting the command in quotes.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields