I am looking for little bash script to list all directories (& subdirectories ) and sum up the disk space of each directory (& subdirectory ) .
Yes I want bash, not perl :)
It would be nice to do everything in k ( kilobytes ) so I know longer numbers means more space.
It would also be nice to show in order the largest directories or largest files in order
Oh, redhat 5&6 is what it needs to run on :). Also I have no control of anything so installing any software is not an option.