May be used when using the decompression unzip files, it can be used to extract the zip / jar / war packet types need to specify the path may extract the extracting parameter -d to specify, for example:
unzip services-bak.jar -d ./web
Such unzip unzip to a web directory, instead of the current directory
Note: unzip parameters
Parameters :
- -c compression solution 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 and -f parameter is similar, but in addition to updating existing files, but also other compressed files are unzipped to the directory.
- -v execution is displaying detailed information.
- -z display only text notes compressed file.
- -a text file the necessary character conversion.
- -b Do not text file character conversion.
- -C archive file names are case sensitive.
- -j does not handle compressed files any original directory path.
- -L will compress all the files in the file name changed to lowercase.
- -M outputs the result to the more procedures.
- Do not overwrite the original file decompression -n.
- -o without first asking the user, overwrite the original file unzip execution.
- -P <password> password option of zip.
- -q Do not display any information when executed.
- -s file name in the blank characters into the bottom line of characters.
- -V retain the file version information of VMS.
- At the same time save the file back to the original UID / GID when -X decompress.
- [.Zip file] .zip compressed file specified.
- [File] specify which files to process compressed .zip file.
- -d <directory> After you specify the file extraction to be stored.
- -x <file> specify which files do not handle compressed .zip file.
- -Z unzip -Z equal zipinfo instruction execution.