zip -r archive_name.zip folder_to_compress
unzip archive_name.zip
If you want to make a zip without those invisible Mac resource files such as “_MACOSX” or “._Filename” and .ds store files, use the “-X” option in the command so:
zip -r -X archive_name.zip folder_to_compress
tar -zcvf archive_name.tar.gz folder_to_compress
tar -zxvf archive_name.tar.gz