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