Compressing and Extracting with Zip in the Terminal

Compressing a folder:

Note: With the -X option, you are compressing without the invisible files such as “_MACOSX” or “._Filename” Extracting an archive: