Where is lsof?

Mikkel L. Ellertson mikkel at infinity-ltd.com
Tue May 5 15:13:46 UTC 2009


Alan Evans wrote:
> On Tue, May 5, 2009 at 5:39 AM, Mike Cloaked wrote:
>> Usually a good way to find where a command is would be to use the "which"
>> command. In this case:
>> [mike at gestalt ~]$ which lsof
>> /usr/sbin/lsof
> 
> How is that going to work if /usr/sbin isn't already in your path?
> 
It does work. Try it yourself.

$ which lsof
/usr/sbin/lsof
$ echo $PATH
/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/mikkel/bin

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090505/f90f609d/attachment-0001.sig>


More information about the fedora-list mailing list