Terry Li
Terry Li

Reputation: 17268

After gunzipping a tar.gz file and gzipping it again, the size of the tar.gz file changed a little bit

Could someone please explain me why that was the case?

Upvotes: 1

Views: 222

Answers (1)

Kevin Stock
Kevin Stock

Reputation: 516

The gzip file format is specified in https://www.rfc-editor.org/rfc/rfc1952

However, different encoders may produce different representations of the same file that are both acceptable, so if the tar file was zipped by different encoders the (zipped) file size could differ.

Upvotes: 4

Related Questions