Zip and password-protect any file via OS X’s Terminal

Pretty simple — just do the following:

  1. Open Terminal (Applications > Utilities > Terminal)
  2. CD to the directory with the file(s) to zip and password-protect
  3. Type the following and wait: “zip -e archive.zip file1 file2”

Note: I zipped my iPhoto Library, so I did “zip -re photos.zip Pictures/”. The -r means recursive.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.