How to use GZip to create a .zip file

You probably want to use zip and not gzip. This should do it:

zip -r newzip.zip /path/to/zip/stuff

This is not possible. gzip and (pk)zip use different compression formats, and more significantly, zip also packages multiple files, directories, together in one archive.


The original zip format is the same as:

 tar -cZf package.zip files....

(note the capital Z uses the compress lib - using the small 'z' would give a gzipped archive which pk/winzip can't understand).

i.e. no, you can't use gzip to create a pkzip file - but I'd be surprised to find a Unix machine which had gzip but not compress.