NAME

zipdetails – display the internal structure of zip files  

SYNOPSIS

    zipdetaile [-v] zipfile.zip
        zipdetails -h

 

DESCRIPTION

Zipdetails displays information about the internal record structure of the zip file. It is not concerned with displaying any details of the compressed data stored in the zip file.

The program assumes prior understanding of the internal structure of a Zip file. You should have a copy of the Zip APPNOTE file at hand to help understand the output from this program (“SEE ALSO” for details).  

OPTIONS

-v
Enable Verbose mode
-h
Display help

By default zipdetails will output the details of the zip file in three columns.

Column 1
This contains the offset from the start of the file in hex.
Column 2
This contains a textual description of the field.
Column 3
If the field contains a numeric value it will be displayed in hex. Zip stored most numbers in little-endian format – the value displayed will have the little-endian encoding removed.

Next, is an optional description of what the value means.

If the "-v" option is present, column 1 is expanded to include

The offset from the start of the file in hex.
The length of the filed in hex.
A hex dump of the bytes in field in the order they are stored in the zip file.
 

TODO

Error handling is still a work in progress. If the program encounters a problem reading a zip file it is likely to terminate with an unhelpful error message.  

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.