Saving Password-Protected Zipped Folders on Mac via Terminal

A screenshot of a Terminal window with the correct command for compressing files/directories in a password-protected zip file.

This is a short post to remind future me of how I can save a password-protected zipped folder on my Mac while using the command line in Terminal.

zip -er filename.zip fileorfolderstocompress

You’re welcome, future me.

Love,

Past me