Users can pack an entire directory structure into a zip archive with a single command.
When changing an existing zip archive, zip will write a temporary file with the new contents, and only replace the old one when the process of creating the new version completes without error. If the name of the zip archive does not contain an extension, the program will append it with the extension .zip. If the name already contains an extension other than .zip, the existing extension remains unchanged. Issuing such a command saves all the files and directories in foo in a zip archive named foo.zip . If you are short on disk space, you might not have enough room to hold both the original directory and the corresponding compressed zip archive.