I need to know how much space zip files take within a hierarchy of directories.
du -hs *.zip does not work.
du -hsc --exclude *.jpg gave me an idea but it is not quite right as there are other files than .zip and .jpg.
Any idea?
Thanks
I understand that I can exclude the zip files and I would get my answer by comparing to the the total without any exclusion but I'd like to know if one can specify types of files with du.
IT does to one level of depth in hierarchy, if however you want to search the subdirectories then replace the value of the option --max-depth=n where "n" is the depth you want to look for.
Regards.