linux常用命令

查找大文件 

find . -type f -size +800M

查找大文件,并且显示文件大小

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

查找大文件,显示大小并且排序

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

查找大文件夹(max-depth设置文件夹的深度)

du -h --max-depth=1

查找大文件夹并排序

du -h --max-depth | sort -nr
原文地址:https://www.cnblogs.com/stimlee/p/8092788.html