[ydl-gen] lsusb in 5.0.2 ??

Christopher Murtagh cmurtagh at terrasoftsolutions.com
Mon Sep 3 20:56:04 MDT 2007


On Monday 03 September 2007 16:49:56 Derick Centeno wrote:
>[root at arakus aguila]# which lsusb 
> /usr/bin/which: no lsusb in
> (/usr/kerberos/sbin:/usr/local/enlightenment/bin:/usr/kerberos/bin:/usr/loc
>al/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/aguila/bin) [root at arakus aguila]#
...
> Any ideas?

 Yeah, it's likely your 'su'. When you su to root to do any sysadmin work, you 
pretty much always want to do 'su -' and not just 'su'.  This will make your 
shell a login shell, and one of these side effects is that you gain the 
environment of the new user (profile, path, etc..). 

 The 'which' command simply displays the full path to the target should it 
have been executed by name (handy for debugging wacky things like when there 
are two binaries with the same name that are different and in different 
places). Since, '/sbin' isn't in an ordinary user's path, but it is in root's 
path, it won't be found by 'which' unless you have it in your path. 

Cheers,

Chris


More information about the yellowdog-general mailing list