1 |
On Wed, Jan 27, 2016 at 04:28:43PM -0400, David M. Fellows wrote: |
2 |
> On Wed, 27 Jan 2016 17:25:37 +0100 |
3 |
> Meino.Cramer@×××.de wrote - |
4 |
> > Hi, |
5 |
> > |
6 |
> > I want to determine the size of the contents of all directories of a |
7 |
> > tree of directories on a hexacore AMD64 machine with 4GB RAM an one |
8 |
> > harddisk (containing that tree) -- most efficiently (least time |
9 |
> > consuming). |
10 |
> > |
11 |
> > I tried this (cwd = root of that tree): |
12 |
> > |
13 |
> > find . -depth -type d -print0 | xargs -0 -P 6 du -bsx {} \; |
14 |
> > |
15 |
> > . Is there any to do this faster? |
16 |
> > |
17 |
> > Thank you very much in advance for any help! |
18 |
> > Best regards, |
19 |
> > Meino |
20 |
> |
21 |
> man du |
22 |
> |
23 |
> Dave F |
24 |
|
25 |
|
26 |
Here's a couple of nice ones: |
27 |
|
28 |
< du -sh /* | sort -rh > |
29 |
|
30 |
< du -axk / | awk '$1 > 2^20 {print}' | sort -rn | head -20 > |
31 |
|
32 |
You could also check out the application ncdu for a curses-based |
33 |
du command analyzer. |