Created
May 13, 2013 22:21
-
-
Save faceleg/5571996 to your computer and use it in GitHub Desktop.
Find largest files or directories in the current directory. Warning: this command can render the machine unresponsive while processing.
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
for X in $(du -s * | sort -nr | cut -f 2); do du -hs $X ; done | head -n 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment