
That's all it takes! You'll now see a compressed file on your desktop. Note: in the image below, our folder is named 'Setapp' so the command reads: zip -er setapp.zip Type this command into Terminal: zip -er filename.zip.Note: if your file or folder were saved to the desktop, you'd type in: cd desktop

Type in ' cd' (no parentheses) and the location of the file or folder you want to compress and protect.It takes some unique commands, but it's the most straightforward method to password protect ZIP file and folders on Mac. There's a simple way to zip and password protect folders and files via Terminal.

How to password protect a ZIP file with Terminal

We'll show you how to password protect a ZIP file, open encrypted ZIP files and folders, and discuss some proven methods for safeguarding your data.
