1, install ZIP, unzip application
Yum Install zip unzip
2, compression and decompression files
The following commands are all operated under the/home directory
Cd/home #进入/home Directory
A. Compress the MyData directory below the/home directory to Mydata.zip
Zip-r Mydata.zip MyData #压缩mydata目录
B. Unzip the mydata.zip under the/home directory into the Mydatabak directory
Unzip mydata.zip-d Mydatabak
C, to the home/home directory under the ABC folder and 123.txt compression becomes abc123.zip
Zip-r abc123.zip ABC 123.txt
D. Extract the Wwwroot.zip from the/home directory directly into the/home directory
Unzip Wwwroot.zip
E. Abc12.zip, Abc23.zip and Abc34.zip under the/home directory are simultaneously extracted to the/home directory
Unzip Abc\*.zip
F. View the contents of the wwwroot.zip inside the/home directory
Unzip-v Wwwroot.zip
G, verify that the wwwroot.zip under the/home directory is complete
Unzip-t Wwwroot.zip
H. Unzip all the files inside the/home directory under Wwwroot.zip to the first level directory
Unzip-j Wwwroot.zip
"Linux" CentOS7 to unzip the zip need to install Uzip