commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Alias to produce a list of all subdir sizes in current dir, in reverse order and human readable units. du is executed only once. Remove the slash after the asterisk to include files.
There are 2 alternatives - vote for the best!
This allows the output to be sorted from largest to smallest in human readable format.
Provides numerically sorted human readable du output. I so wish there was just a du flag for this.
OSX's BSD version of the du command uses the -d argument instead of --max-depth.
If you can do better, submit your command here.
You must be signed in to comment.