Linux - Script to kill deleted files lsof, How to kill hundreds of deleted files
Script to kill deleted files lsof
Some time your log filesystem might seem to get full, but actually some of the deleted files might be holding the disk space. in general you can kill the PID's if there is one or two deleted files. When there is more than hundreds of deleted files and you have to kill all the deleted files then you can use the below script. But note killing more numbere of process or PID are actually not recommended.# lsof +L1 | grep 'deleted' | awk '{print $2}' | xargs kill -9
The topic on Linux - Script to kill deleted files lsof is posted by - Math
Hope you have enjoyed, Linux - Script to kill deleted files lsofThanks for your time