Created
January 28, 2016 11:54
-
-
Save tswann/cb72b49a1ce6ca065ba3 to your computer and use it in GitHub Desktop.
Script to list top 10 big files/directories
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/sh | |
# Top 10 space-hogging space hogs | |
for i in G M K; do du -ah | grep [0-9]$i | sort -nr -k 1; done | head -n11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment