-
-
Save jl2/1177784 to your computer and use it in GitHub Desktop.
"One liner" to show how disk space is being used in the current 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
#!/usr/bin/zsh | |
ls -Q -d . | xargs du -b -- | \ | |
sort -n |\ | |
perl -e 'while (<>) { @p = split; $sz = shift @p;\ | |
printf("%3.2f MB \t@p\n",$sz/(1024*1024)); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment