PATH question

Chris Malton chrism at cjsoftuk.dyndns.org
Wed Jun 27 16:37:58 UTC 2007


Restart your bash shell or the PC.

This usually clears this up.

Bash does file location caching.

Chris

R Kimber wrote:
> "echo $PATH" gives
> 
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
> 
> "which sensors" gives
> /usr/bin/sensors
> 
> "ls -l /usr/bin/sensors" gives
> -rwxr-xr-x 1 root root 144448 2007-03-07 14:02 /usr/bin/sensors
> 
> "sensors" gives
> bash: /usr/local/bin/sensors: No such file or directory
> 
> What do I need to do to be able to execute 'sensors' ? I seems to be
> able to execute other files in /usr/bin, and I can execute it if I give
> the full pathname.
> 
> - Richard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2146 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070627/26074884/attachment.bin>


More information about the ubuntu-users mailing list