Created
March 31, 2016 07:45
-
-
Save raelga/23abd43171208a6d629c9271d61daebc to your computer and use it in GitHub Desktop.
Disk usage inspection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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