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.
|
feedback
|
|
You might also like to use zdiff if you do want to compare the compressed contents. | |||
|
feedback
|
|
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 compressed. Even a one second difference is enough to make the gzip files not match. | |||
|
feedback
|
|
Two possible causes:
| |||||||||||
feedback
|