On 05-Jul-00 Anurag Jalan wrote:
> Hi all,
> 
> On my Redhat box i have a 9 Gb HD with 4 primary partitions :
> 
> /boot - 50 Mb
> / - 6.5 Gb
> /home - 2.5 Gb
> and SWAP - 128 Mb
> 
> To my horror, I found that the /home partition is 89 % full.., despite the
> fact that i have only 10 users and my Web server is installed at
> /usr/local/apache ..
> 
> There are so many sub directories in the user directories that it is nearly
> impossible to scan all of them manually ..
> 
> Is there a utility that can help me locate the space hogs ?

start with du.

        as root:
                cd /home
                du -s *

This will tell you were the bulk lies. Then go into that directory
and repeat the du.

I also wrote a script that will do a du in a directory, and sort the
results, giving you a sorted list of usage.

        #!/bin/bash

        du -s * | awk '{printf("%6s %s\n", $1, $2)}' | sort

-Greg

----------------------------------
E-Mail: Gregory Hosler <[EMAIL PROTECTED]>
Date: 06-Jul-00
Time: 10:30:17

        If Bill Gates had a dime for every time a Windows box crashed...
             ...Oh, wait a minute, he already does.

----------------------------------


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to