Translate

Archives

Image of Modern Operating Systems (3rd Edition)
Image of Beginning Google Maps API 3
Image of Android Wireless Application Development
Image of XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer)

Gzip v Zip: Determing Which Type Of Archive

Sometimes it is different to easily tell which type of zipped archive you are dealing with because the zipped archive has an incorrect extension or no extension at all.

Here is how to tell which you are dealing with:

Zip file header:

$ od -h zipped-file |head
0000000 8b1f ...

Gzip file header:

$ od -h zipped-file |head
0000000 4b50 0403 ...

 

Comments are closed.