Re: linux equiv for pstat, NIS problems

Keith Owens (kaos@ocs.com.au)
Mon, 16 Dec 1996 15:28:28 +1100


> We are currently using "ps ax | wc -l" to get
> the process total, but have not yet found a way to count total open files.

Quick and dirty

echo `find /proc/[0-9]* -path '*/fd/*' | wc -l` / \
`cat /proc/sys/kernel/file-max`