Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

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

I'm using Ubuntu 12.04.

share|improve this question

marked as duplicate by Karan, Tog, gronostaj, Shekhar, mpy Jul 17 '13 at 21:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Thanks! So with unzip -t I can check if the zip file is damaged. Should I do something if similar question is already exist? – ironsand Jul 16 '13 at 9:42
I don't think you have sufficient rep yet, but if you want we can mark as duplicate for you. – Karan Jul 16 '13 at 15:12
The post you wrote give me enough information for me. Please mark this post as duplicate. – ironsand Jul 16 '13 at 16:18

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

share|improve this answer
I want only check file integrity without making zip file. thanks anyway! – ironsand Jul 16 '13 at 9:37
which is what -T does: zip -T – akira Jul 16 '13 at 9:57

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.

share|improve this answer
As a precaution it's a good way. I'll use the command next time. Thanks! – ironsand Jul 16 '13 at 9:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.