Command Preference

Tim ignored_mailbox at yahoo.com.au
Fri Jul 9 04:19:07 UTC 2010


On Thu, 2010-07-08 at 19:15 -0700, Alejandro Rodriguez Luna wrote:
> What if I have 2 command like ls, one in /bin/ls and another in
> ~/bin/ls, i'd like to use my own ls, how i can do that?

There is a risk in putting a path before the system paths, if it's
possible for something else to be put into that extra path by hook or
crook.

One option, that's not annoying to manage, if it's only one or two
commands, is to alias them.

-- 
[tim at localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.





More information about the users mailing list