How to create zip and unzip a .zip file in Ubuntu Command Line

First you will have to install unzip package using apt.

sudo apt install unzip

To zip a folder you will have to use the following command

zip -r <folder_to_be_zipped>

This command will create a zip of the folder and will generate a zip file of the folder

To unzip a zip file you can use the following command


The zip file will be extracted to the folder from where the command is executed.

To send this file to another ubuntu server you can use the following tutorial link.

How to move a folder from one Linux server to another using SCP