Translate

Archives

Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of Modern Operating Systems (3rd Edition)
Image of Linux Kernel Development (3rd Edition)
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)

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.