On Wed, Jan 27, 2016 at 04:28:43PM -0400, David M. Fellows wrote:
> On Wed, 27 Jan 2016 17:25:37 +0100 
> meino.cra...@gmx.de wrote -
> > Hi,
> > 
> > I want to determine the size of the contents of all directories of a
> > tree of directories on a hexacore AMD64 machine with 4GB RAM an one
> > harddisk (containing that tree) -- most efficiently (least time
> > consuming).
> > 
> > I tried this (cwd = root of that tree):
> > 
> >     find . -depth -type d -print0 | xargs -0 -P 6 du -bsx {} \;
> > 
> > . Is there any to do this faster?
> > 
> > Thank you very much in advance for any help!
> > Best regards,
> > Meino
> 
>    man du
> 
> Dave F


Here's a couple of nice ones:

< du -sh /* | sort -rh >

< du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20 >

You could also check out the application ncdu for a curses-based
du command analyzer.

Reply via email to