Linux unzip command details how to use Linux unzip command

Source: Internet
Author: User

Linux unzip command is used to decompress the zip file

Unzipping is the decompression program for. ZIP compressed files.

Syntax

Unzip [-cflptuvz] [-agCjLMnoqsVX] [-P <password> ][.zip file] [file] [-d <Directory>] [-x <FILE>] or unzip [-Z]

Parameters:

  • -C displays the extracted results on the screen and converts the characters properly.
  • -F: update an existing file.
  • -L displays the files contained in the compressed file.
  • The-p parameter is similar to the-c parameter. The decompressed result is displayed on the screen, but no conversion is performed.
  • -T check whether the compressed file is correct.
  • The-u parameter is similar to the-f parameter, but in addition to updating existing files, other files in the compressed file are also extracted to the directory.
  • -V displays detailed information when executing the command.
  • -Z only displays the remarks of the compressed file.
  • -A performs necessary character conversion on text files.
  • -B. Do not convert characters in text files.
  • -C: The file name in the compressed file is case sensitive.
  • -J does not process the original directory path of the compressed file.
  • -L change all file names in the compressed file to lowercase letters.
  • -M sends the output result to the more Program for processing.
  • -N do not overwrite the original file during decompression.
  • -O does not need to ask the user first. After unzip is executed, it overwrites the original file.
  • -P <password> use the zip password option.
  • -No information is displayed when q is executed.
  • -S converts the white space characters in the file name to the bottom line characters.
  • -V retains the file version information of VMS.
  • -X: saves the original UID/GID of the file at the same time during decompression.
  • . ZIP file] specifies the. Zip compressed file.
  • [File] specifies the files in the. Zip compressed file to be processed.
  • -D <Directory> specifies the directory to be stored after the file is decompressed.
  • -X <FILE> indicates which files in the. Zip file are not processed.
  • -Z unzip-Z is equivalent to executing the zipinfo command.

Instance

Show compressed file information

# Unzip-l abc.zip Archive: abc.zip Length Date Time Name -------- ---- 94618 05-21-10 20:44 a11.jpg 202001 05-21-10 a22.jpg 16 05-22-10 11.txt 46468 05-23-10 w456.JPG 140085 03-14-10 my. asp -------- ------- 483188 5 files

Decompress the file

# Unzip-v abc.zip Archive: abc.zip Length Method Size Ratio Date Time CRC-32 Name -------- ------- ----- ---- 94618 Defl: N 93353 1% 05-21-10 20:44 9e661437 a11.jpg 202001 Defl: N 201833 0% 05-21-10 20:44 1da462eb a22.jpg 16 Stored 16 0% 05-22-10 01 ae8a9910? +-| ¥ + -? (112.16.txt 46468 Defl: N 39997 14% 05-23-10 962861f2 w456.JPG 140085 Defl: N 36765 74% 03-14-10 836fcc3f my. asp -------- ------- --- 483188 371964 23% 5 files
Related Article

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.