on Mon, Oct 30, 2000 at 03:34:57PM -0500, Anderson, Tim TL33E (Tim.Anderson@ace-ina.com) wrote:
>
> > -----Original Message-----
> > From: Damien [SMTP:bitwise@repose.cx]
> > Sent: Monday, October 30, 2000 2:12 PM
> > To: debian-user@lists.debian.org
> > Subject: Re: root file system
> >
> > > As you will see from another post, /var is under root. I've been looking
> > > very hard there and I can't find a culprit. I have looked in most
> > > directories. Can you give me an idea of where, outside of mail, things
> > > in /var get big?
> >
> >
> > the easier way to narrow down this sort of thing is this:
> >
> > cd /
> > du -bsc * | sort -n
> >
> > you can then cd to each subdir whos size appears erroneous, and repeat
> I've had to go through this recently, and it's a little tedious. Anyone
> know of a tool that can list directories in order of size? (excluding subdir
> sizes obviously). If not then I guess I just made myself a little scripting
> project ;) although I am sure some people here can just rattle it off
> without thinking.
for dir in $( find . -type d )
do
echo "$dir: $( du -sSc $dir/* | grep total )"
done
Note that this will create problems for files with spaces. So, let's
try:
sh -f <<EOF
$( find . -type d | sed -e '/.*/s//echo -e "& $( du -sSc "&/*" )/' ) | grep total )
EOF
...well, ok, that doesn't quite work but it should provide some useful
hints.
--
Karsten M. Self <kmself@ix.netcom.com> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
Attachment:
pgpcHPO_B4yeZ.pgp
Description: PGP signature