How to zip a folder in Ubuntu Linux / Debian Linux

First, install the zip command using apt command or apt-get command.
Open the terminal and type the following command:

$ sudo apt install zip unzip
apt install

How do I use zip command to compress a folder?

zip -r folder
zip -r folder1 folder2
zip -r /path/to/folder1 /path/to/file2compress folder cli

compress zip result