Skip to content

Instantly share code, notes, and snippets.

@jonatin
Created October 16, 2012 20:10
Show Gist options
  • Save jonatin/3901669 to your computer and use it in GitHub Desktop.
Save jonatin/3901669 to your computer and use it in GitHub Desktop.
Find the biggest disk hogs with Bash, tested on CentOS
#!/bin/bash
du -k --max-depth=0 * | sort -nr | cut -f2 | xargs -d '\n' du -sh | head -n 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment