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