Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
How to gzip multiple files into one gz file?

I am trying to gzip a bunch of files in the same folder using cgywin on windows 7. When I try

gzip *.* 

I can't seem to specify a gzip filename to put all the files into. All files are gzipped separately. Is it possible to gzip the collection of them into the file?

share|improve this question

marked as duplicate by RedGrittyBrick, Nifle, Shiki, Ƭᴇcʜιᴇ007, Mokubai Feb 19 '12 at 21:25

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

As for the question - use tar to make 1 file then gzip to compress it. –  T. Kaltnekar Feb 19 '12 at 12:43

1 Answer 1

up vote 2 down vote accepted

No, you do not gzip collection. You use PAX or CPIO or TAR to make it.

gzip *.* is useless.

DOS would take gzip .
UNIX would use gzip *

tar cfz file.tgz dir/ dir/ dir/ file dir/file

tar tvfz file.tgz
tar xvfz file.tgz
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.