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 @ 2021-11-03 22:02  赵瑛  阅读(1063)  评论(0编辑  收藏  举报

版权所有 © 2022 沅来是澧

如果有程序开发、网站建设等需求的请联系我,QQ:47419233