on Wed, Aug 29, 2001 at 11:00:53PM -0400, dman (dsh8290@rit.edu) wrote:
> On Wed, Aug 29, 2001 at 09:29:01PM -0400, Nick Furman wrote:
> | I seem to be having something eat away disk space on my primary partition.
> | Does anyone have any idea what's going on?
>
> Karsten posted a neat little shell script a couple days ago that would
> list the largest directories in the current directory. Run it
> repeatedly on each subdirectory you are interested in to see where the
> space is actually being used.
>
> (Actually, it may have recursed the whole filesystem automatically, I
> don't remember the details)
$ du -sx * | sort | uniq -c | sort -nr | cat -n
It *does* recurse a directory tree.
The '-x' on the du prevents it from traversing filesystems, though the
'*' will pick up all FSs in PWD.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What part of "Gestalt" don't you understand? There is no K5 cabal
http://gestalt-system.sourceforge.net/ http://www.kuro5hin.org
Free Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire http://kmself.home.netcom.com/resume.html
Attachment:
pgpx9LNtGRwPj.pgp
Description: PGP signature