分析&回答
使用 find 命令找到大于指定大小的文件:
当前目录大于500M文件
find ./ -size +500M
用户目录大于500M文件
find ~ -type f -size +500M
根目录大于500M文件
find / -type f -size +500M
让文件按大小排序
du -h * | sort -n
反思&扩展
编辑人: 独留清风醉
2025-05-10
3
796
当前目录大于500M文件
find ./ -size +500M
用户目录大于500M文件
find ~ -type f -size +500M
根目录大于500M文件
find / -type f -size +500M
du -h * | sort -n