The -x option is useful too; it skips mount points.

[root@rbh01 src]# du -s /
3421769 /
[root@rbh01 src]# du -sx /
1980444 /
[root@rbh01 src]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/dasda1            2366164   1980456    265512  89% /
/dev/dasdb1            2366164   1309992    935976  59% /mnt
[root@rbh01 src]#

Richard Hitt  [EMAIL PROTECTED]

>
> On Tue, 17 Sep 2002, James Melin wrote:
>
> > Is there a good tool to say analyze part of a file system tree and report
> > how much space it is using?
> >
> > Say like /usr/sbin - which is not in it's own file system but part of a
> > larger one.
>
> You mean, like this?
> [root@dugite root]# du -sh /usr/
> 1.2G    /usr
> [root@dugite root]# du -sh /sbin
> 7.7M    /sbin
> [root@dugite root]#
>
>
>
>
> > My thought was this:
> >
> > Mod 3 capacity 2838 mb
> > Mod 9 capacity 8514 mb
> >
> > swap        3390 mod-3
> > /           3390 mod-9
> > /tmp        3390 mod-3
> > /usr        3390 mod-9
> > /usr/bin          3390 mod-9
> > /usr/sbin   3390 mod-3
> > /home       3390 mod-9
> > /bin        3390 mod-9
> >
> >
>
> Doesn't appeal to me, but I'll leave the process of shooting it down
> to others. I like fewer volumes.
>
> --
>
>
> Cheers
> John.
>
> Please, no off-list mail. You will fall foul of my spam treatment.
> Join the "Linux Support by Small Businesses" list at
> http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
>

Reply via email to