Total size of multiple directories

Josh Frome jfrome at gmail.com
Fri Jun 25 14:36:14 MDT 2010


>
> How about using the -c option to du?
>
> find . -iname "*pic*" -type d | xargs du -shc
>
> -c should give you a total of all dirs listed.
>
> --Bob
>
>
Looks like  -c is the switch I was looking for.  Thanks!

Josh


More information about the PLUG mailing list