-
-
Save kylejeske/742775c9e259469f09582c2834ea3f53 to your computer and use it in GitHub Desktop.
Find Largest Files/Directories on Linux System
This file contains 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
# 10 Largest Files | |
find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {} |
This file contains 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
# 10 Largest Directories | |
find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment