The method of Linux release the disk space occupied

1、Check with df find / root directory of free space 0

[root@/]#df -h

2、Check each directory found with du occupies very little space,About 3G space somehow lost。

[root@/]# du -m –max-depth=1 |sort -gr

3、Check with lsof after the discovery of reason,There files are deleted,And the process is still alive,Resulting phenomenon also takes up space

[root@/]# lsof |grep delete

According to numbers listed in the process lsof,After these processes kill,Space is released out

Leave a Comment