[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SLUG] Finding open files on the system
At the last meeting, it was asked:
" If the disk is spinning madly is there any way to determine which
process is causing the activity ?"
A bloody good question that I have asked myself many times. I used to
have a utility called 'fopen' under QNX but not under linux.
If anyone is interested, I have written a utility called 'fopen' which
does the following
a) Prints the PID, Process name & Currently open files for that PID
b) as above but for sockets
c) as above but for pipes.
It also prints either the size of the file (so you can see it growing)
or optionally, the time since last access/change/modification.
PID PROCESS TIME FILE/RESOURCE
1161 crond 00:05:18 /var/log/cron
If anyone interested, let me know.
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug