查看占用并排序 du -h --max-depth=1 | sort -rh # 查看占用并从达到小排序 所有大于1G的目录 du -h | grep '[0-9\.]\+G' 大于500M du -ah --max-depth=1 | grep -E '^[0-9\.]+[MG]' | awk '$1 ~ /M$/ && $1+0 > 500 || $1 ~ /G$/ && $1+0 > 0'