1. Introduction
The program unzip can extract the zip file.
2. Grammar
Usage:unzip [-z] [-opts[modifiers]] file[.zip] [list] [-X xlist] [-D Exdir]
The Default action is to extract the files in the list, except those in xlist and to Exdir; File[.zip] may be a wildcard. -Z => zipinfo mode ("Unzip-z" for usage).
-P Extract files to pipe, no messages
-L Displays the files contained within the compressed file.
-F Update Existing Files
-T check that the compressed file is correct
-U update files, create if necessary
-Z Display archive comment
-x specifies which files in the. zip compressed file should not be processed
-d Specifies the directory to store after the file is uncompressed
Modifiers:
-Q Quiet mode (-QQ => quieter)
-N Never overwrite existing files
-a Auto-convert any text files
-O Overwrite files without prompting
-aa treat all files as text
-j junk paths (don't make directories)
-V be verbose/print version info
-C Match Filenames case-insensitively
-L make (some) names lowercase
-X Restore Uid/gid Info
-V retain VMS version numbers
-K Keep Setuid/setgid/tacky permissions
-M pipe through "more" pager
3, Example
1 Extract the war package to the specified directory
unzip-d Test Blog.war
Reference: Baidu Encyclopedia