|
|
Check a disk usage summary to find wasted disk space using bash
If you use bash as your shell (default in Panther IIRC), the command
alias dus='du -Psckx * | sort -nr'
should be added to your ~/.bash_profile.
Check a disk usage summary to find wasted disk space using bash
It also seems that
Check a disk usage summary to find wasted disk space using bash
Don't use du -h and sort -n at the same time. The -n option to sort tells it to sort numerically, but the -h option to du keeps it from returning a number. If you du -h and sort -n, you end up with a list that puts 12K in front of 11G, which isn't what you wanted.
Check a disk usage summary to find wasted disk space using bash
I believe the "P" option is relative to the version of du you have installed. The "P" option is not available for me in Jaguar running du version 4.1 installed via Fink. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|