Total size of multiple directories

Bob Belnap bbelnap at
Fri Jun 25 13:53:54 MDT 2010

On Fri, Jun 25, 2010 at 1:47 PM, Josh Frome <jfrome at> wrote:

> All,
>     I'm looking for a way in bash to display the sum total size of multiple
> directories.  Think 'du -sh', but only include certain directories.
>  Ideally, I'm looking for something I can use with 'find' to get a quick
> idea of how much space a group of directories is using.  Any ideas?
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.


More information about the PLUG mailing list