[wplug] disk usage

Shawn Zier shawnzier at gmail.com
Mon Mar 31 21:22:53 EST 2008


Mackenzie Morgan wrote:
> 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
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>   
i use:

du -sh /path/to/folder

-s for summary
-h for human readable

check the du man page for more options




More information about the wplug mailing list