Archive for 2007-03-31

How to check original size of gzip’ed file?

2007-03-31

There is a better solution, take a look at the comment.

After downloading a gzip’ed ISO image, I’d like to check its size without decompressing it onto disk. Now, what can be done?

Though decompressing it onto disk is undesirable, it is a different thing when dumped into stdout, with another program fired up to check the size of data:

$ gzip -dc xxxxxxxxx.iso.gz | dd of=/dev/null bs=1k
251840+0 records in
251840+0 records out
257884160 bytes (258 MB) copied, 8.2713 seconds, 31.2 MB/s