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 |
|