Last active
January 13, 2018 01:17
-
-
Save tomplex/5d4bf9acf1dc4b63cede9fcb4a62cc4f to your computer and use it in GitHub Desktop.
List top 10 largest files / directories in given directory
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
#!/bin/bash | |
# Usage: | |
# ./list-dir-size.sh my_directory | |
# | |
du -hsx $1 | sort -rh | head -10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment