Zip & Unzip on VPS CentOS

Kaz Wolfe

Well-known member
Registered
Joined
Jul 7, 2016
Messages
609
Points
28
First off, you need to install the zip / unzip tool from the shell command. In the Application> System Tools> Terminal. You log into as root account, type the following commands to install zip and unzip program on Debian or Ubuntu Linux:

Code:
apt-get install zip
apt-get install unzip
OR
Code:
sudo apt-get install zip unzip
Once Zip and Unzip installed on the server, you run the following command to install:

Code:
yum install zip
yum install unzip
To Unzip the zip file to a different folder is as following:

Code:
cd /var/www/domain
yum unzip filename.zip
CD command will move the current folder to a new folder that you targeted.

If you want to Zip a directory with a custom name for downloading it to your PC

Code:
zip -r filename.zip cd /var/www/domain/folderzip
Good luck!
 
Latest Threads

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top