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
Comments:

stop being apologetic and explanatory about writing a blog. You wrote (and every one does) to barf some stuff on the world wide web, to put your foot prints in the sands of time (or whatever).

Good post but post more regularly!

While adding this comment instead of an image captcha i need to solve a 'simple' math question 1 + 62 = ? given in text. What does sun think a computer can't do it?

Posted by quark on September 03, 2007 at 02:29 PM IST #

point noted.

I would try and see if we could break this silly math question.

Posted by atishay on September 04, 2007 at 01:20 PM IST #

Post a Comment:
  • HTML Syntax: NOT allowed