Centos查找大文件的办法

find / -size +100M -exec ls -lh {} \;

 

# 查看整体磁盘占用
df -h


#切换到这块磁盘检查一下这块磁盘的哪个文件夹占用高,再逐层去查找
du -h --max-depth=1


[root@localhost logs]# du -h --max-depth=1 |grep 'G' |sort
276G    ./xx
289G    .
3.9G    ./space
9.3G    ./default_log

/usr/local/openresty/nginx/logs

posted @ 2017-09-15 15:25  糖豆爸爸  阅读(1634)  评论(0编辑  收藏  举报
Live2D