Many times I'm looking for the biggest directory's/file to find what
is taking the most space. I use this.
du ./* | sort -rn | head -24

On 8/28/07, Colby W. <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Sampson, Warren wrote:
> > My 'var' folder/slice/partition (I never know the correct term) is
> > currently using over 3G and I want to know where and/or what is using
> > it.
> >
> > How can I do something similar from the command line in OBSD and is
> > there a better way that I am not aware of?
> >
> > # df -h
> > Filesystem     Size    Used   Avail Capacity  Mounted on
> > /dev/wd0a      502M   78.2M    398M    16%    /
> > /dev/wd0d     1006M   52.0K    956M     0%    /tmp
> > /dev/wd0e      3.9G    1.5G    2.2G    41%    /usr
> > /dev/wd0m      7.9G    3.3G    4.2G    44%    /var
> > /dev/wd0h      2.0G    116M    1.8G     6%    /home
> > /dev/wd0p      9.8G    2.7G    6.7G    28%    /backup
> >
> > Thanks,
> >
> > Warren (Sam) Sampson
>
> Warren,
>
> Take a look at the man page for du(1), the -c and -s options (ie, du -s
> /var/somedir) will probably be the most helpful. If you don't have
> logrotate enabled/working, then /var/log/* can fill up pretty fast,
> particularly on production environments.
>
> Enjoy,
>
> Colby W
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG1D2fuFcu5gZoJg0RClEiAKCm1pEo2YzSKrUCTUi9Cne1C2hzgwCdE6eI
> 4ea53vl1jjLmIIyrT/Cy6HI=
> =b3+E
> -----END PGP SIGNATURE-----
> _______________________________________________
> Openbsd-newbies mailing list
> [email protected]
> http://mailman.theapt.org/listinfo/openbsd-newbies
>


-- 
Kevin Arhelger
[EMAIL PROTECTED]
_______________________________________________
Openbsd-newbies mailing list
[email protected]
http://mailman.theapt.org/listinfo/openbsd-newbies

Reply via email to