I am trying to unzip a zip file. I tried with unzip and got the below error
#unzip -p ConfigMigrationUtility.zip
[ConfigMigrationUtility.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
There is a difference between zip/unzip and gzip/gunzip . If gzip complains about the extension, try renaming it to ConfigMigrationUtility.gz .
If it still complains, either the first message from zip/unzip might be correct, or the archive is in a different format or broken.
You can gunzip an archive created with zip, but not vice versa.
zaxxon's advice is correct if for some reason it is a file compressed using gzip, but it was named with a ".zip" extension. However, it is worth mentioning that the error you encountered may also be because the file was corrupted in some way. ZIP and GZIP are binary formats, so if that file was transferred at some point using a non-binary protocol, it may have corrupted the data. Also, to determine if it is ZIP or GZIP, you can look at the first few bytes of the file.