On Sun, Jul 15, 2007 at 09:54:25AM -0400, Curt Howland wrote:
 
> I was just fiddling with the "tree" utility to see if it would help. 
> Unfortunatley, "tree -d -h" returns the size of the directory entries 
> themselves (4.0K, 8.0K, etc), rather than the cumulative size of the 
> files inside the directory which I was hoping for. Maybe someone else 
> has a suggestion.

du -xh --max-depth=1 will do the trick, but you will need to do it as 
root, otherwise you'll get 'permission denied' on some dirs. Here is 
mine for comparison (/home is on a separate partition, but it's not 
shown due to the -x option):

think:/# du -hx --max-depth=1
3.3M    ./bin
207M    ./lib
8.8M    ./etc
40K     ./media
4.0K    ./srv
16K     ./mnt
4.0K    ./lost+found
3.9M    ./sbin
14M     ./boot
4.0K    ./initrd
0       ./dev
4.0K    ./home
1.6G    ./usr
98M     ./root
68K     ./tmp
4.0K    ./opt
0       ./proc
0       ./sys
652M    ./var
2.5G    .

As expected, /usr and /var take the biggest chunk. All others barely add 
to ~300M.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature

Reply via email to