Created
July 1, 2022 14:14
-
-
Save michalmonday/9a3099f90bbde0f09ba8f3544eb23451 to your computer and use it in GitHub Desktop.
Simple but super useful for cleaning space bash script to list largest files.
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
if [ $# -eq 0 ]; then | |
PATH_DU="." | |
else | |
PATH_DU="$1" | |
fi | |
sudo du -ah --max-depth=1 $PATH_DU | sort -rh | head -n 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment