Sample Header Ad - 728x90

How to use lsof to find high activity file writing?

2 votes
1 answer
582 views
I recently discovered that a buggy program called pcmanfm was writing 200 MB per second to its run.log file, so I had to find ways to combat that. I discovered what file it was that it was writing to in a laborious manner: du -h for various directories trying to find the offending file. I'm now faced with another similar situation. Something is filling up my hard drive and I have no idea what it is, although I can guess. Is there a way to use lsof to find out what 1 or 2 files are being written to at a high rate? * Can I sort the file list by file size? * Can I sort the file list by writing rate i.e. bytes/second?
Asked by wudude (247 rep)
Oct 4, 2020, 05:39 PM
Last activity: Feb 17, 2021, 05:15 AM