[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Files owned by processes
- Subject: [ale] Files owned by processes
- From: hirsch at zapmedia.com (hirsch at zapmedia.com)
- Date: Wed, 20 Feb 2002 11:56:05 -0500
ale at jeffx.com writes:
> Had a problem here that the /tmp file system was full. Doing an du and ls
> showed no files that were large enough to fill up the partition ( not even
> combining the files ). I wanted to see what processes had what files open to
> attempt to find which process was guilty. I couldn't find a way to accomplish
> it. Is there a way to show what files are opened by process?
"/sbin/fuser -m /tmp" will show you all pids that have files open in
/tmp. If pid 1234 is in the list then "ls -l /proc/1234/fd" will list
all the file descriptors. You can grep that output for /tmp to find
the files.
--Michael
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.