Home » Code » Linux » Linux查找大文件

Linux查找大文件

查看磁盘整体信息:df -h

找出大小超过100M的文件:find / -xdev -type f -size +100M |xargs du -h |sort -rh

最大的目录:du -a / |sort -rn |head -5

最大文件:find / -type f -exec du -h {} + |sort -rh |head

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.