Created
January 29, 2024 02:19
-
-
Save Prozi/e8bf94a050a29fdc8a0a0c6d8a606ac7 to your computer and use it in GitHub Desktop.
linux dir content size
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
alias dirsize="du --max-depth=1 -k * | sort -nr | cut -f2 | xargs -d '\n' du -sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this works on macos
alias dirsize="du -d 1 -k * | sort -nr"
in KB