Re: Procfs



On Mar 4, 4:45 pm, Andrew Reilly <andrew-newsp...@xxxxxxxxxxxx
users.org> wrote:
On Wed, 04 Mar 2009 03:16:38 -0800, Anees wrote:
How to know any process open files and read address space in FreeBSD ?
as we can do in Linux by navigating Procfs. Is there any such way in
FreeBSD.

I generally use lsof or fstat for the former, and gdb for the second, but
I also have procfs mounted on /proc; can't remember why, but I'm sure
that some things that I use depend on it (probably because they were
written for linux...)  There's a whole family of *stat commands that are
useful for finding out various things about a running FreeBSD system.  
There's also some things that are best discovered through sysctl.

Cheers,

--
Andrew

Thank you. :)
.



Relevant Pages

  • Re: Procfs
    ... as we can do in Linux by navigating Procfs. ... I generally use lsof or fstat for the former, and gdb for the second, but ... useful for finding out various things about a running FreeBSD system. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: vn_fullpath question.
    ... i.e. fstat thread. ... vn_fullpathis a kernel API, not a user API, so can only be invoked from ... DragonFly BSD project (derived from FreeBSD 4) have added ... "That's what I love about GUIs: They make simple tasks easier, ...
    (freebsd-hackers)
  • Re: sysutils/lsof author: API work?
    ... to engage anyone interested in improving lsof's interface ... did Vic looked at the facilities provided by sysctl kern.proc? ... hunch is that will be true of the standard FreeBSD ... an lsof API. ...
    (freebsd-current)
  • RE: 31337
    ... On Mon, 5 Mar 2001, Rob Simmons wrote: ... > lsof is a solaris utility. ... You want to use fstat in FreeBSD. ... no valid OpenPGP data found. ...
    (FreeBSD-Security)
  • Re: Shared libraries used by an Unix process
    ... Lsof 4.71 is qualified on FreeBSD 4.10. ... If the target process is using shared libraries, ...
    (comp.unix.programmer)