Re: Track file usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





dan wrote:
Andy Pieters wrote:
Hi all

Those of you who have had the punishment of maintaining workstations with m$ on it might have heard, or even used filemon (from sysinternals).  It hooks itself on the kernel and keeps an eye on what application accesses what file.

Is anyone aware of such an utlity for Linux?  No fancy gui needed, plain old cli will suffice.

Basically what I want to do is launch the app, then run another program and see what files are being opened by that program.


Kind regards


Andy



ANdy -

I use 'lsof' quite often, and it does the same thing, almost, as filemon.  It simply lists open files.  I'm not sure if it is capable of doing a continuous list, however - anyone else know?

Sorry if this email wasn't completely helpful, but it will at least give you a starting point.

Thanks
-dant

lsof is the tool you need,
you can also do
ls /proc/<PROCESS-ID>/fd
and get a list of all files/sockets opened by this process.

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux