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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM