Created
April 30, 2017 09:22
-
-
Save tehcpu/b9f2d4da5f8e98a3e3df0bdc2cbbc65d to your computer and use it in GitHub Desktop.
unix disk usage program alternative
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
my_du() { | |
find $1 -printf "%s\n" | { total=0; while read filesize; do ((total+=filesize)); done; echo $total; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment