Aug 24, 2018 - You probably know how to create password protected zip files on Windows (and if you don't you should check out our guide), but did you know. How to Password Protect a Zip File from Mac OS X Command Line. If you’re familiar with the command line, the syntax of the encrypted zip command is as follows. Zip -e [archive] [file] For encrypting multiple files with a password, such as folder or an entire directory, the syntax would be as follows.
Zip-tar-dmg Since macOS is based on Unix there are a number of ways to compress files and folders within the filing system using Unix based application code, below are a few options using the Terminal or command line interface (cli). The default command line application interface in macOS is the Terminal and is stored in /Applications/Utilities. File and folder compression saves on file size and ensures the contents are captured and delivered or stored as one monolithic file. A compressed file which contains files and folders is generally referred to as an archive.
Here are some built-in compression applications you can use including zip, tar, gz, bz2, gz and dmg.