Linux command unzip usage

Source: Internet
Author: User
Decompress the zip file syntax: unzip0000-cflptuvz00000000-agcjlmnoqsvx00000000-p&lt;password&gt;0000.zip file] [file] [-d & lt; Directory & gt;] [-x & lt; file & gt;] or unzip [-Z] Supplement: unzipis the decompression program for the. zip compressed file. Parameter:-c... decompress the zip file: unzip [-cflptuvz] [-agCjLMnoqsVX] [-P <密码> [[.Zip file] [file] [-d <目录> ] [-X <文件> ] Or unzip [-Z] Supplement: unzipis the decompression program for. ZIP compressed files. 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 <密码> 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 <目录> Specifies the directory to be stored after the file is decompressed. -X <文件> Specifies which files in the. zip compressed file are not processed. -Z unzip-Z is equivalent to executing the zipinfo command. The basic usage is: zip [parameter] [package file name] [package directory path] parameter: -a converts the file to ASCII mode-F tries to fix the damaged compressed file-h displays the help page-m After compressing the file, delete source file-n files with specific character strings not compressed-o sets the latest change time of all files in the compressed file to the compression time-q Quiet mode, the execution process of commands is not displayed during compression-r processes all subdirectories and files in the specified directory together-S contains system files and hidden files (S is capitalized) example: the zip command can be used to compress files into common zip formats. The unzip command is used to decompress the zip file. 1. unzip: # zip-r yasuo.zip abc.txt dir12. I downloaded a file named yasuo.zip and want to decompress it: # unzip. I want to decompress them together: # unzip abc \?. Zip note :? Represents a single character. if "*" is used, it indicates any number of characters. 4. I have a large compressed file large.zip. I don't want to decompress it. I just want to see what it contains: # unzip-v large.zip5. I downloaded a compressed file large.zip, I want to verify whether the compressed file has been downloaded completely # unzip-t large.zip6. I used -v8.0 to find that there are many directories and subdirectories in the music.zip compressed file, and the subdirectories are actually mp3 files of songs, I want to download all these files to the first-level directory instead of the first-level Directory: # unzip-j music.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.