Various operations of linuxzip compression and decompression
1. compress the mydatafile under the/home directory as mydata.zip.
Zip-r mydata.zip mydata # compress the mydata directory
2. Decompress mydata.zip in the/homecatalog to the mydatabak directory.
Unzip mydata.zip-d mydatabak
3. compress the abcfolder and 123.txtfile under the/Home Directory into abc123.zip
Zip-r abc123.zip abc 123.txt
4. Extract the wwwroot.zip file in the/homedirectory to the/home directory.
Unzip wwwroot.zip
5. Decompress abc12.zip、abc23.zip、abc34.zip in the/homedirectory to the/home directory at the same time.
Unzip abc \ *. zip
6. view the content in wwwroot.zip under/homecontents.
Unzip-v wwwroot.zip
7. Verify that the wwwroot.zip file under/homedirectory is complete
Unzip-t wwwroot.zip
8. Decompress all the files in wwwroot.zip under the/homedirectory to the first level directory.
Unzip-j wwwroot.zip