Create a script called dirsize.

Put the following command in it….
du -sm $(find $1 -type d -maxdepth 1 -xdev) | sort -g
or
du -sh $(find $1 -type d -maxdepth 1 -xdev) | sort -g

Chmod the file… then call with the directory as a argument.

Advertisements