Not enough disk space to install lsof, which I need to discover which process to kill to free up my disk

Had a runaway log file that filled up my disk space. I was able to identify and delete it, but it would seem that it is still in use somewhere as df -h shows my disk as 160G/160G used even though the file I deleted was 146G. This issue and other solutions advise using lsof, but that isn’t present on my system. Running yum install lsof (running CentOS 7) fails due to not having enough disk space.

Any suggestions on how to free up this phantom disk space?

Answer

Ugh, turns out a different file had generated after I’d deleted the initial one and I just missed it. Deleted that one and things seem to be back running. Great suggestions in the comments above, though!

@gullum’s suggestion of sudo ls -l /proc/*/fd | less did essentially what I was looking to do with lsof.

Attribution
Source : Link , Question Author : Mrweiner , Answer Author : Mrweiner

Leave a Comment