Linux decompression/compression xxx. Zip format (Installation and use of UnZip Zip)

Source: Internet
Author: User

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)

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.