Skip to content

Instantly share code, notes, and snippets.

@raelga
Created March 31, 2016 07:45
Show Gist options
  • Save raelga/23abd43171208a6d629c9271d61daebc to your computer and use it in GitHub Desktop.
Save raelga/23abd43171208a6d629c9271d61daebc to your computer and use it in GitHub Desktop.
Disk usage inspection
#!/bin/bash
# Get current disk usage
df -h
# Get the top 5 disk consuming folders
du -hxS / 2> /dev/null | sort -rh | head -n5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment