Zip command in Mac terminal code example
Example 1: create zip file password mac
zip -er NAMEOFZIPFILE.zip sourcepathfolder
Example 2: zip folder terminal
zip -r mynewfilename.zip foldertozip/
Example 3: compress file in terminal
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 4: zip current directory mac command line
zip -r output_file.zip .