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

Re: PATH question



On Thu, Mar 15, 2007 at 12:23:17AM -0400, Tony Heal wrote:
> I have a problem on one of my servers. The ‘ls’ command does not have the –h
> switch available. So as a workaround until I can determine what caused this and
> why I wanted to use the ‘ls’ file from another server. I copied /bin/ls from
> server # 2 onto server # 1 and tested it and it works fine, including the –h
> switch.
> 
>  
> 
> So I typed set, read the PATH and found that /usr/local/bin is in the path
> before /usr/bin. I thought I could simply drop the new ls in /usr/local/bin and
> the system would see it first when called and use it. WRONG.
> 
>  
> 
> So my questions are:
> 
>  1. why not?
>  2. what is the order used in the path?
> 
>  
> 
for personal binaries, most folks use ~/bin. Edit .bash_profile for
this.
-- 
|  .''`.  == Debian GNU/Linux == |       my web site:           |
| : :' :      The  Universal     |mysite.verizon.net/kevin.mark/|
| `. `'      Operating System    | go to counter.li.org and     |
|   `-    http://www.debian.org/ |    be counted! #238656       |
|  my keyserver: subkeys.pgp.net |     my NPO: cfsg.org         |
|join the new debian-community.org to help Debian!              |

Attachment: signature.asc
Description: Digital signature


Reply to: