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

原文地址:https://www.cnblogs.com/littlehb/p/7526658.html