Re: Command Preference

2010-07-09 Thread Aaron Konstam
On Thu, 2010-07-08 at 19:15 -0700, Alejandro Rodriguez Luna wrote: > > Hi all!!, i have a question related to the preference of a command. > > 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? > > putting PATH=~/bin:/bin. I

Re: Command Preference

2010-07-08 Thread Tim
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 in

Re: Command Preference

2010-07-08 Thread Kevin J. Cummings
On 07/08/2010 10:15 PM, Alejandro Rodriguez Luna wrote: > > Hi all!!, i have a question related to the preference of a command. > > 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? > > putting PATH=~/bin:/bin. I mean, my pa