- 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:
OR
Once Zip and Unzip installed on the server, you run the following command to install:
To Unzip the zip file to a different folder is as following:
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
Good luck!
Code:
apt-get install zip
apt-get install unzip
Code:
sudo apt-get install zip unzip
Code:
yum install zip
yum install unzip
Code:
cd /var/www/domain
yum unzip filename.zip
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