Create password protected Zip file on Mac

To create a password protected Zip file from the command line on a Mac

  • Create a folder for the source files,
  • Move the source files into the folder,
  • Open a terminal in the parent folder,
  • Execute the command:
zip -er MY_ZIPFILE.zip SOURCE_FOLDER_NAME/

Zip will ask for the password.

Leave a comment

Your email address will not be published.