Find every zip-file in every subfolder
This will find in all subfolders of the current folder (.
) the files (-type f
) with the extension zip
(or ZIP
or Zip
or zIp
and so on, case is ignored, -iname
) and test their integrity (option -t
) being quiet (option -q
, together -tq
). Being quite means: Not list the content of the zip-file, but only report test result.
find . -type f -iname '*.zip' -exec unzip -tq {} \;
Just current folder (no subfolders)
If you just want to check the files in the current directory, and not in any subfolders, use
unzip -tq '*.[Zz][Ii][Pp]'
in the directory with the zip files. This also checks for file extensions ZIP
or Zip
or zIp
and so on, case is ignored.
Any recent packer can make archive integrity checks. – Overmind – 2017-07-20T12:31:26.123
4Which operating system? – Matteo – 2012-12-31T10:23:10.910