Skip to content

Instantly share code, notes, and snippets.

@riovv
Created February 13, 2012 14:24
Show Gist options
  • Save riovv/1817251 to your computer and use it in GitHub Desktop.
Save riovv/1817251 to your computer and use it in GitHub Desktop.
Find large files on linux
# Find files > 20MB
find . -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
# Find directories >= 1GB
du -h . | grep ^[0-9.]*G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment