Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created March 22, 2010 06:38
Show Gist options
  • Save steshaw/339845 to your computer and use it in GitHub Desktop.
Save steshaw/339845 to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -type d -mindepth 1 -maxdepth 1 -print0 | xargs -0 du -ms | sort -rn | cut -f2 | while read dir; do
du -hs "$dir"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment