Hack 47. Validate a zip archive
by Ramesh
Sometime you may want to validate a zip archive without extracting it. To test the validity of the zip file, pass option –t as shown below.
- # unzip -t var-log.zip
- Archive: var-log.zip
- testing: var/log/acpid OK
- testing: var/log/anaconda.log OK
- testing: var/log/anaconda.syslog OK
- skip...
- testing: var/log/wtmp OK
- testing: var/log/wtmp.1 OK
- testing: var/log/Xorg.0.log OK
- No errors detected in compressed data of var-log.zip.
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .