Posts tagged with “zip

Generating a password-protected archive

Generating an archive file from either a file or directory is a cinch using the command-line. Here’s the structure: zip [options] [archive name] [file or folder to be archived] While there are many options available, the one we’re interested in is -e, for “encrypted”, like so: zip -e example.txt To create a password-protected archive […]

Breaking out of the ZIP-CPGZ loop

I receive a lot of compressed archives, from a wide variety of different users. Those who prefer the command-line (usually other developers) will TAR the directory then GZIP the TAR. Most users are more comfortable with a GUI for archiving and wind up sending a ZIP file. With those it’s usually a quick double-click and […]