All That is Gold Does Not Glitter

ls and \ls

Sunday Jul 29, 2007

you may ask why would I blog about this. The answer is simple. People who are new to Unix based systems do not know about it.

ls as everyone knows is a command to list files and directories. Anyone could create a alias for ls so as to customize it, a typical example being  [ alias ls='ls --color=auto'  ]

Now there are situations where you would like that when you say ls, it should run the ls command as decided by $PATH varilable and not run any alias that you have created. For Ex, you are one a terminal and color display is difficult to read. you dont want remove the alias for this one-time situation. \ls comes to your rescue then. It would run ls as determined by $PATH and does not take into account aliases that have been created.

As you must have guessed, this applies to any command.

[2] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg