[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PATH question



> You can use 'which' to find out which ls is being called, but it goes by 
> first come first serve:
> echo $PATH
> /home/jeffd/bin:/usr/local/bin:/usr/bin:/bin
> jeffd@proto:~$ touch ~/bin/ls
> jeffd@proto:~$ chmod 755 ~/bin/ls
> jeffd@proto:~$ which ls
> /home/jeffd/bin/ls
> jeffd@proto:~$ rm ~/bin/ls
> jeffd@proto:~$ which ls
> /bin/ls
> 

Additionally, which -a will list all of them (in order)

-- 
Tarek



Reply to: