getting a list of open files versus PID nos.?

Bruce Cran bruce at cran.org.uk
Wed Dec 8 23:01:54 UTC 2010


On Wed, 8 Dec 2010 14:54:57 -0800
Matthew Fleming <mdf356 at gmail.com> wrote:

> This is what lsof is for.  I believe there's one in ports, but I have
> never tried it.

Is there any advantage to using lsof instead of fstat(1) (fstat -p pid)?

-- 
Bruce Cran


More information about the freebsd-hackers mailing list