Linux Command unzip usage

Source: Internet
Author: User

Decompress the zip file: unzip [-cflptuvz] [-agCjLMnoqsVX] [-P <password> ][.zip file] [file] [-d <directory>] [-x <File>] Or unzip [-Z] additional instructions: unzipping is 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 <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. 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.