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
Replies
0
Views
108
Replies
0
Views
62
Replies
0
Views
56
Replies
1
Views
85
Recommended Threads
Replies
3
Views
3,271
Replies
1
Views
2,043
Replies
6
Views
3,698
Replies
1
Views
2,643
Replies
5
Views
2,881

Latest postsNew 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