Skip to content

Instantly share code, notes, and snippets.

@perrygeo
Created March 28, 2012 16:30
Show Gist options
  • Save perrygeo/2227998 to your computer and use it in GitHub Desktop.
Save perrygeo/2227998 to your computer and use it in GitHub Desktop.
Bash one-liners
# Find the ten largest disk hogs in the current directory (with human-readable sizes)
for X in $(du -s * 2>/dev/null| sort -nr | cut -f 2); do du -hs $X 2>/dev/null; done | head -n 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment