get the total size of given file types in directory Posted on June 8, 2016June 8, 2016 by coder find . -type f -name '*.jpg' -exec du -ch {} + 1 find . -type f -name '*.jpg' -exec du -ch {} + At the end you will see the total size,