Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Check a disk usage summary to find wasted disk space using bash' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Check a disk usage summary to find wasted disk space using bash
Authored by: foobar104 on Oct 10, '03 12:56:23PM

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.



[ Reply to This | # ]