How to show total files size in a folder by filtering extension without showing each file size

disk-usagefileswildcards

du -hc *zip shows me total size of zip files in a folder, but it shows also every single file size of the folder. I only need total size.

Is there way to show the total size of a folder without showing single file sizes?

Best Answer

 du -ch *zip | grep total

Just add a grep statement in the end.

If you are against grep, you can use,

du -s *zip
-s, --summarize
display only a total for each argument
Related Question