FG
💻 Software

Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?

Fresh7 days ago
Mar 15, 20261759 views
Confidence Score0%
0%

Problem

I use the "diff" command to compare two compressed files generated using zip on the exact same starting file and they are reported as being different. However, when I uncompress them and use the "diff" command, no differences are shown. I've noticed this with both zip and gzip.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Why are there binary differences among compressed files generated exactly the same way from the exact same starting file?

Low Risk

One of the fields in the gzip header is different between the two files. One such field is the last modified time of the compressed file (in seconds since 1970), or if the compressed data was not read from a file, then the time when the file was com…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment