how to zip a directory in mac terminal code example Example: zip current directory mac command line zip -r output_file.zip .