Created
August 18, 2011 12:05
-
-
Save searls/1153930 to your computer and use it in GitHub Desktop.
How @magnusstahre reviews disk usage from the command line in *nix
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
du -k / > /tmp/du | |
find / -ls > /tmp/ls | |
sort -n /tmp/du #to find the biggest directories | |
sort -n -k 7,7 /tmp/ls #to find the biggest files | |
#at least the latter one you probably want to pipe to either say less or tail | |
sort -n -k 7,7 /tmp/ls | tail -100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment