Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Dec 2010 09:49:22 +1100
From:      richo <richo@psych0tik.net>
To:        FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: getting a list of open files versus PID nos.?
Message-ID:  <20101208224922.GA14847@richh-desktop.boxdice.com.au>
In-Reply-To: <4D000448.1050606@telenix.org>
References:  <4D000448.1050606@telenix.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/12/10 17:18 -0500, Chuck Robey wrote:
>What I want to see is a list of all Pids and how many open files 
>there are associated with each Pid?  And maybe a "ps ax" list, so I 
>can associate an application with a pid.  I would set things up so it 
>would do this every 15 minutes, and it might just point me at my real 
>Any idea what would be the best way to get a list of all openfiles 
>versus each open pid?  I would be happy to write up a python script 
>to give me application versus count of open files list, if I could 
>start with that files versus pids thing.

lsof is what you're looking for.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101208224922.GA14847>