How to zip & unzip in Linux

How to zip & unzip in Linux

Install zip and unzip

sudo apt-get install zip unzip

Zip a folder

zip -r file_name.zip /path/to/folder

Unzip at current working directory

unzip file_name.zip

Unzip at specified folder

unzip file_name.zip -d /path/to/folder