[ale] Files owned by processes

hirsch at zapmedia.com hirsch at zapmedia.com
Wed Feb 20 11:56:05 EST 2002


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.






More information about the Ale mailing list