Linux command unzip

Source: Internet
Author: User

Scenario: It's convenient to use this command when extracting the war package.

1 Basic Usage

Unzip [options] Compress file name. zip

1.2 Complete Syntax

Unzip [-CFLPTUVZ] [-AGCJLMNOQSVX] [-p < password;] [. zip file] [file] [-D < directory;] [-X < file;] or unzip [-z]

1.3 List of parameters

-C: Displays the extracted results to the screen and converts the characters appropriately.

-F: Update the existing file.

-L: Displays the files contained within the compressed file.

-P: Similar to the-c parameter, the extracted results are displayed on the screen, but no conversions are performed.

-T: Check that the compressed file is correct.

-U: Similar to the-f parameter, but in addition to updating existing files, other files in the compressed file are extracted to the directory.

-V: Displays detailed information when it is performed.

-Z: Displays only the memo text of the compressed file.

-A: Make the necessary character conversions for the text file.

-B: Do not convert text files to characters.

-C: File names in a compressed file are case sensitive.

-j: The directory path is not processed in the compressed file.

-L: Change all the file names in the compressed file to lowercase.

-M: Sends the output to the more program processing.

-N: Do not overwrite the original file when decompressing.

-O: Do not need to ask the user first, unzip overwrite the original file after execution.

-p< Password >: Use the zip password option.

-Q: No information is displayed when executing.

-S: Converts white space characters in file names to baseline characters.

-V: Keep the file version information of the VMS.

-X: The original uid/gid of the file is also stored back when decompressed.

[. zip file]: Specifies a. zip compressed file.

[File]: Specifies which files in the. zip archive to process.

-d< Directory >: Specifies the directory to be stored after the file has been decompressed.

-x< File >: Specifies which files in the. zip archive are not processed.

-Z Unzip:-Z equals execute zipinfo instruction.

1.4 Application Examples

1. Unzip a file

Unzip Yasuo.zip

2. Unzip multiple files together (? denotes one character, * denotes any number of files)

Unzip abc\? Zip

3, check the contents of the compressed file without pressure

Unzip-v Large.zip

4. Verify that a compressed file is completely downloaded

Unzip-t Large.zip

5. Omit subdirectories to extract all files to the root directory

Unzip-j Music.zip

1.5 Reference URLs

Http://server.chinabyte.com/245/11086245.shtml

(GO) Linux command unzip

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.