我试图找到一个命令来显示大于 1 GB 的文件并显示按大小排序的文件。我已经尝试过,find . -maxdepth 2 -type f -size +1G -print0 |xargs -0 du -h |sort -rh但出于某种原因,这会显示大小不超过 1 GB 的文件。例如,这是在输出中1.0K ./<repo>/.git/info
find . -maxdepth 2 -type f -size +1G -print0 |xargs -0 du -h |sort -rh
1.0K ./<repo>/.git/info
command-line find disk-usage
command-line ×1
disk-usage ×1
find ×1