Linux unzip command
Linux unzip command to unzip the zip file
Solutions .zip compressed file to unzip compression program.
grammar
unzip [-cflptuvz][-agCjLMnoqsVX][-P <密码>][.zip文件][文件][-d <目录>][-x <文件>] 或 unzip [-Z]
Parameters:
- -c will decompress the results displayed on the screen, and the characters do the appropriate conversion.
- -f update existing files.
- -l displays the compressed file in the file contains.
- Similar -p and -c parameters will decompress and displays the result on the screen, but does not perform any conversion.
- -t Check the compressed file is correct.
- -u -f parameter is similar, but in addition to updating existing files, but also compressed files in other files into the directory.
- -v execution is displayed when detailed information.
- -z display only text notes compressed file.
- -a text file the necessary character conversion.
- -b Do not text file character conversion.
- -C Compressed file in the file names are case-sensitive.
- -j archive does not process any original directory path.
- -L The compressed file in the file name to all lowercase.
- -M Output the results to more procedures.
- Do not overwrite the original file -n decompressed.
- -o without first asking the user, overwrite the original file after unzip execution.
- -P <Password> using a zip password options.
- -q does not display any information when executed.
- -s file name in the blank characters are converted to underline characters.
- -V Retain the VMS file version information.
- Restore files while the original UID / GID when -X decompress.
- [.zip File] Specifies the .zip archive.
- [File] Specifies the handle .zip compressed file which files.
- -d <directory> to specify the file to be stored unzipped directory.
- -x <file> Specifies not handle compressed .zip file which files.
- -Z Unzip -Z equal zipinfo instruction execution.
Examples
Display archive information
# unzip -l abc.zip Archive: abc.zip Length Date Time Name -------- ---- ---- ---- 94618 05-21-10 20:44 a11.jpg 202001 05-21-10 20:44 a22.jpg 16 05-22-10 15:01 11.txt 46468 05-23-10 10:30 w456.JPG 140085 03-14-10 21:49 my.asp -------- ------- 483188 5 files
unzip files
# 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 15:01 ae8a9910 ? +-|¥+-? (11).txt 46468 Defl:N 39997 14% 05-23-10 10:30 962861f2 w456.JPG 140085 Defl:N 36765 74% 03-14-10 21:49 836fcc3f my.asp -------- ------- --- ------- 483188 371964 23% 5 files