How to zip a directory

$ zip -r archive.zip [target]

Command
zip
Description
Command options to recursively zip a directory and its contents. Usage: zip -r archive.zip target_dir
Deep Dive
The -r flag is required to compress directories. -r: Recursively Without -r, only the empty directory entry might be stored.