In Linux There are Lots of Command So Some Time We forget how to zip or unzip the folder in Linux. Ok Let’s Start Follow This

If You have unzip install then skip this step, if not then folllow.

# sudo yum install unzip (CentOS)

#sudo apt-get install unzip (Ubuntu)

Now we like to zip a folder which is in /var/www/ ok. We will go to that folder.

# cd /var/www

We will zip HTML folder. So use this command

# zip -r html.zip html

Now it will be zip after some sec. if your folder in other location you can go there and zip that.

Now How to unzip? It’s Simple Just you need to use this command

# unzip html.zip

it will unzip the file thank you