The Linux system does not have its own compression decompression tool; We need to install it ourselves; Zip package is required when the package is in. zip format
1, Apt-get Installation:
Apt-get Install Zip
2. Yum Installation:
Yum install-y Unzip zip
Command instance:
1. Compress the MyData directory below the/home directory to Mydata.zip
Cd/home zip-r Mydata.zip MyData
2. Unzip the mydata.zip under the/home directory into the Mydatabak directory
Unzip mydata.zip-d Mydatabak
3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zip
Zip-r abc123.zip ABC 123.txt
4. Extract the Wwwroot.zip from the/home directory directly into the/home directory
Unzip Wwwroot.zip
5, the Home/home directory under the Abc12.zip, Abc23.zip, abc34.zip simultaneously extracted to the/home directory
Unzip Abc\*.zip
6. View the contents of the wwwroot.zip inside the/home directory
Unzip-v Wwwroot.zip
7. Verify that the wwwroot.zip under the/home directory is complete
Unzip-t Wwwroot.zip
8. Unzip all the files inside the/home directory under Wwwroot.zip to the first level directory
Unzip-j Wwwroot.zip
Linux decompression/compression xxx. Zip format (Installation and use of UnZip Zip)