Zip all files in current folder to archive.zip

zip archive *

Zip all files in current folder, including Subdirectories to archive.zip

zip -r archive *

Zip all files in Target folder, including Subdirectories to out.zip

zip -r archive /path/to/folder

Zip Specific Files

zip archive.zip file1.txt file2.txt file3.txt

Show Files in Zip Archive Without Extracting

unzip -l archive.zip

Extract All Files in Zip Archive to Specific Location

unzip archive.zip -d /folder # can create new folders this way

Unzip Specific File in Archive

unzip archive.zip archivedFile.txt -d ./aNewFolder

Zip with Password

zip archive.zip -e path/to/file

This will prompt for a password on the CLI.