Linux下查找大文件

1.查找出大文件+800M,并列出明细

find . -type f -size +800M  -print0 | xargs -0 ls -l

2.查找出大文件,并显示出文件大小

find . -type f -size +800M  -print0 | xargs -0 du -h | sort -nr

3.当前目录的大小: du -sh .

当前目录下个文件或目录的大小: du -sh *

显示前10个占用空间最大的文件或目录: du -s * | sort -nr | head -n 10

原文地址:https://www.cnblogs.com/tomtellyou/p/12410577.html