Skip to content

Instantly share code, notes, and snippets.

@diogomonica
Created January 7, 2011 14:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogomonica/769525 to your computer and use it in GitHub Desktop.
Save diogomonica/769525 to your computer and use it in GitHub Desktop.
Finds all files bigger than 20m in a linux system, presenting them from Biggest to smallest (including full path and actual size)
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment