[wplug] disk usage

Mackenzie Morgan macoafi at gmail.com
Mon Mar 31 17:03:54 EST 2008


On Mon, 2008-03-31 at 17:52 -0400, Zach wrote:
> I am looking for a recursive script (SH/BASH/Perl) which will show the
> total size (in MB) of each all subdirectories in a given directory. I
> would like this sorted with the largest ones listed at the top. Also a
> second script to show the largest files (also in MB and sorted with
> biggest at the top) and show which directory it is in.

du -axc | sort -nr | tail -n 100
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.wplug.org/pipermail/wplug/attachments/20080331/942cf9b4/attachment.bin


More information about the wplug mailing list