Zip Up a Folder from the Command Line

Here is how you create an zip archive from the terminal:

zip -r myzip.zip nameOfYourFolderToZip

The above command will create an zip archive of a folder named nameOfYourFolderToZip and save it to myzip.zip.

You can also encrypt a zip archive.