Various operations of linuxzip compression and decompression

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.