Translate

Archives

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 …