Reputation
292
Top tag
Next privilege 300 Rep.
Create tags
Badges
6 18
Impact
~39k people reached

2d
revised how do you sort du output by size?
added 10 characters in body
2d
comment how do you sort du output by size?
do you mean putting the first set of code into a file called ducks, and then chmod a+x ducks and then use ./ducks to run it? Then I only see the total disk usage, on both Mac OS X and on Ubuntu 2014-10. I also tried putting the ducks() { ...} definition into .bashrc and then use ducks to run it, and the same thing on Mac OS X, only see the grand total
Apr
22
revised how do you sort du output by size?
edited body
Apr
22
revised how do you sort du output by size?
added 28 characters in body
Apr
22
revised how do you sort du output by size?
added 156 characters in body
Apr
22
revised how do you sort du output by size?
deleted 2 characters in body
Apr
22
comment how do you sort du output by size?
I think you meant du -cks -x * ? (with the asterisk)
Apr
22
revised how do you sort du output by size?
added 4 characters in body
Apr
22
revised how do you sort du output by size?
added 443 characters in body
Apr
22
revised how do you sort du output by size?
added 289 characters in body
Apr
22
answered how do you sort du output by size?
Apr
21
comment How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
hm... and I think this solution uses 2 passes of du... maybe better if it can be 1 pass. But thanks for the commandlinefu.com pointer
Apr
21
comment How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
the above line doesn't work on the Mac...
Apr
21
revised How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
edited body
Apr
21
revised How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
edited tags
Apr
21
comment How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
it says invalid options (on OS X Yosemite). If there is, you would do du -sh * | sort -gh ?
Apr
21
asked How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer?
Mar
24
awarded  Popular Question
Mar
19
awarded  Nice Question
Feb
17
awarded  Notable Question