Skip to content

Instantly share code, notes, and snippets.

@kevinkepp
Last active January 3, 2016 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinkepp/8470401 to your computer and use it in GitHub Desktop.
Save kevinkepp/8470401 to your computer and use it in GitHub Desktop.
Linux: Recursively list all files in a directory by size
find . -type f -exec ls -lh {} \; | awk '{print $5, $9}' | sort -h -r
@kevinkepp
Copy link
Author

To list only the 10 biggest files append | head -n 10 to the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment