Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a very large directory of zipped files, and unzipping them via the terminal using

unzip \\*.gz

returns the following error:

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.

I googled the error and it seems this is due to my download being incomplete/corrupt. However trying to extract individual files using the archive manager works perfectly.

I downloaded the directory again and got the same error. So is there a way to extract multiple files using the archive manager, or some other way besides the command line (which is not working for me)?

share|improve this question
Why are you using unzip to decompress a .gz archive? Try this: tar xpfz \*.gz –  errikos Sep 23 '13 at 8:18
errikos is right, unzip is only useful for .zip files. Since you are dealing with .gz files, the uncompress command to use is gzip -d <filename>. If you are dealing with .tar.gz (or .tgz) files the tar command recommended by errikos is the correct one, although I'd restrict it to actual .tar.gz files instead of all .gz files. In short, a tar file is used to pack many files within one uncompressed archive file, while gzip is then used to compress this .tar file. The tar command can automatically run gzip when invoked with the -z option. –  soulsource Sep 23 '13 at 8:57
@errikos, thanks for the suggestion, but tar did not work either for a single file or for the batch of files. –  ubuntunoob Sep 25 '13 at 18:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.