Skip to content

Instantly share code, notes, and snippets.

@searls
Created August 18, 2011 12:05
Show Gist options
  • Save searls/1153930 to your computer and use it in GitHub Desktop.
Save searls/1153930 to your computer and use it in GitHub Desktop.
How @magnusstahre reviews disk usage from the command line in *nix
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