Re: how to figure out file sizes


Subject: Re: how to figure out file sizes
From: David Syzdek (syzdek@mosquitonet.com)
Date: Tue Nov 27 2001 - 17:30:39 AKST


Bob,

        My guess is you have a few files in /root, but the following
command will display the file sizes in order and in K. Run it as root so
you do not run into permission problems:

root@host:~$ for DIR in `ls /|grep -v home|grep -v usr |grep -v var|grep
-v boot| grep -v proc|grep -v dev`;do du -ks `find /$DIR`;done|sort

        This probably isn't the best way, but it'll work.

--David "Sizzler" Syzdek---------------------------
Systems Administrator Assoc.
http://www.mosquitonet.com/~syzdek
---------------------------syzdek@mosquitonet.com--
MosquitoNet & ACS Internet -- System Administration
http://www.acsalaska.netA
Quality Internet Service
------------------------------------Shred the Web!-

On Tue, 27 Nov 2001, Bob Crosby wrote:

>
> How can I find out what files are eating up my root partition? df shows
>
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/hda8 256667 210021 33394 87% /
> /dev/hda1 54416 4466 47141 9% /boot
> /dev/hda6 13820376 4943176 8175164 38% /home
> /dev/hda5 13820376 1818484 11299856 14% /usr
> /dev/hda9 256667 42777 200638 18% /var
>
> For some reason, the root partition keeps filling up with something -- now
> 87% full, and continuously growing until the computer crashes. Is there a
> way to sort the results of du by size?
>
>
>
>



This archive was generated by hypermail 2a23 : Tue Nov 27 2001 - 17:33:26 AKST