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