

Several files, you can spare yourself the hassle of attaching each file To easily transport or email several files at once, zipping a file will alsoĭecrease the size of the files and offer you password protection.Ĭomputers have their own built-in compression features that can easily zipįiles or folders. It’s like a bunch of coins put into a single pouch and zippedĬlosed, so it can be easily moved, transferred, or sent. What is a ZIP file?įiles, a ZIP file is a collection of files that have been compressed into a

Here’s how to zip a file or folder on a Mac or a Windows PC. But then, how exactly are you going to upload the folders as attachments in an email? Well, the easiest way to do that is to turn them into a ZIP file. You visited so many places that you decide to organize them into folders. The zip -P uses standard encryption.So you just went on a vacation with friends, and they’re asking for copies of your photos. This seems safer as it prompts you for your password (instead of typing it directly as an argument to zip -P, but uses weak PKZip 2.0 encryption.

Note: this article used to refer to the zip -e command. The first argument after that is the name of your new, password protected, zip file and the second argument is the file or folder you want to encrypt. The zip -P will be followed by the password for your ZIP file. Note if you type the zip command in your shell with an extra space before the command, it won’t be saved in your bash history! Since you’re typing the password directly as a command-line argument, it poses a security risk of staying in your history files. $ zip -P YourPass my_zip_file.zip your_original_file.docxĪdding: your_original_file.docx (stored 23%)
