Unzip, how does the Linux system unzip the zip file?

Source: Internet
Author: User

The unzip is usually available when using Linux, but it may not be available in the system after a minimal installation.

Yum List unzip see if the installation

If not installed, continue yum install unzip

After installation, you can use the zip and unzip commands to compress and decompress the zip file!

Syntax: Unzip [-cflptuvz][-agcjlmnoqsvx][-p < password >][zip file] [file][-d < directory >][-x < file;] or unzip [-z]

Example:

#比如我刚下载了一个名字叫 av.zip file, I want to extract it to the current directory. Then enter the command as follows.

[Email protected] ~]# Unzip Av.zip

Extract #如果想要把av. zip to the specified directory

[Email protected] ~]# Unzip av.zip/home/av/

#如果不解压, just want to see what's inside.

[Email protected] ~]# unzip-v av.zip

#如果想要一次解压很多个包到当前目录, such as Av1.zip, Av2.zip, Av5.zip.

[Email protected] ~]# unzip av\? Zip

#如果你想把解压出来的文件再压回去, compress the AV.RMVB into Superav.zip

[Email protected] ~]# zip superav.zip av.rmvb

The following I put the detailed unzip parameters, please refer to the following bar friends.

-C Displays the extracted results to the screen and converts the characters appropriately. -F Updates an existing file. -L Displays the files contained within the compressed file. -P, similar to the-c parameter, displays the results of the decompression to the screen, but does not perform any conversions. -T checks that the compressed file is correct. -U is similar to the-f parameter, but in addition to updating existing files, other files in the compressed file are extracted to the directory. -V performs yes when the detailed information is displayed. -Z Displays only the memo text of the compressed file. -A necessary character conversion for the text file. -B Do not convert the text file to character. The file names in the-C compressed file are case sensitive. -J does not handle directory paths that are contained in compressed files. -L Changes 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 extracting. -O do not need to ask the user first, unzip overwrite the original file after execution. -p< password > password using zip option. -Q does not display any information when executing. -S converts white space characters in the file name to baseline characters. -V retains the file version information for the VMS. -X Unzip while the original uid/gid of the file is stored back. [zip file] Specifies the ZIP archive. [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.

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.