Last active
January 3, 2016 13:38
-
-
Save kevinkepp/8470401 to your computer and use it in GitHub Desktop.
Linux: Recursively list all files in a directory by size
This file contains hidden or 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
find . -type f -exec ls -lh {} \; | awk '{print $5, $9}' | sort -h -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To list only the 10 biggest files append
| head -n 10
to the command.