Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


finding processes by files open

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Author Message
Ashen



Joined: 30 Aug 2003
Posts: 58

Posted: Thu Nov 20, 2003 2:23 pm    Post subject: finding processes by files open  

Just thought I'd post this, it's a bit rough and ready but it works.
lsof +D /path
will list all processes and all the files that they have open,
that are contained within a recursive list of everything down
the filetree from /path.

Great to tell where users are running commands from,
how many files there are open, etc.

-Ashen
Back to top  
 
       Linode.com Forum Forum Index -> Linux Tips, Tricks, Tutorials
Page 1 of 1