Check if zip file is damaged [duplicate]

How can I check whether a zip file is damaged? I know that with zip -F input.zip --out output.zip I can fix the file. But I could not find an option that only checks the file CRC.

I'm using Ubuntu 12.04.


I would use the -T / --test flag to check integrity.


You could md5sum command to check for the file integrity. This will generate a 128 bit hash string. You can generate the simultaneous hash string for the original zip file and compare both of them. You just have to run the following command to generate md5 checksum,

:~$ md5sum <filename>
<128 bit hash string> <filename>

If the string matches then the file is not damaged. It is a good and easy way to check file integrity.