From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Filetree disk size Date: 11 Jul 2000 10:48:03 GMT Organization: Aachen University of Technology (RWTH) Lines: 47 Message-ID: <8keu13$fuk$1@nets3.rz.RWTH-Aachen.DE> References: <8keric$jff$1 AT diana DOT bcn DOT ttd DOT net> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: nets3.rz.RWTH-Aachen.DE 963312483 16340 137.226.32.75 (11 Jul 2000 10:48:03 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 11 Jul 2000 10:48:03 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rafael García" wrote: > Does anybody know a portable program to recursively show sizes of > subdirectories? > Something like this: > 945 \dir > 345 \dir\uno > 200 \dir\uno\a > 100 \dir\uno\b About the most portable existing program that does roughly this would be GNU 'du', one of the GNU fileutils. It's available on practically every existing platform, including Windows and DOS (DJGPP). The one thing it doesn't do is indent the listing by subdirectory, i.e. you get: 7 ./NeXT/English.lproj/GnuTerm.nib 6 ./NeXT/English.lproj/gnuview.nib 14 ./NeXT/English.lproj 56 ./NeXT 350 ./demo 32 ./docs/latextut 167 ./docs/old 37 ./docs/psdoc 1096 ./docs 11 ./m4 147 ./os2 1267 ./term 222 ./win 3 ./linux/docs/latextut 548 ./linux/docs 3991 ./linux 3 ./alpha/docs/latextut 17 ./alpha/docs 99 ./alpha 10674 . As often is the case with unix tools, 'du' has tons of options to influence its output, and you can use the output nicely in other programs. One nice trick, e.g., is 'du | sort -n' to see which are the largest subdirectories of any given directory tree. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.