linux delete files to free up space problems encountered

After deleting files using du -sh find a larger space
but use df -h find mount points available percentage did not update

Install lsof
domain install lsof
use lsof | grep deleted
will find the process of occupation
completely remove, kill the process
using lsof | grep data0 | grep delete | awk '{print $ 2}' | xargs kill -9

In addition, we are no linux the Recycle Bin, deleted files will be generally in the / tmp file, periodically delete.

Some services do not meet when the removal process may cause the service to stop
using echo ""> xxx.log can be.

Guess you like

Origin www.cnblogs.com/lph970417/p/12149059.html