
23 Aug
2004
23 Aug
'04
12:42 a.m.
On Mon, 23 Aug 2004, Oliver Jones wrote:
Heya.
Anyone know of a tool that is like "top" but for showing the number of files a process has open. I know all about lsof. But I want something along the lines of:
PID NAME OPENFILES 1234 httpd 20 5321 bash 5 ...
Something I can sort by number of files open like you can sort top by memory or cpu usage.
You might be able to do something similar by traversing /proc/[1-9][0-9]*/ and doing some counts... it'd make for a fun scripting exercise :) Cheers Richard