User Tools

Site Tools


filesystem_usage_delete_files

This is an old revision of the document!


Clearing Deleted Files WITHOUT an Application Restart

Ever deleted a file and wondered why the disk space hasn't cleared?
Chances are the application is still keeping the old file open.
One way to “release” the file is to restart the application, however 99% of the time this is NOT ideal!!

1) First we find the file descriptor for the offending file:

find /proc/*/fd -ls | grep  '(deleted)'


lsof | grep 'Deleted'

filesystem_usage_delete_files.1508247036.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki