Linux command to decompress the war package

Source: Internet
Author: User
Commands for extracting war packages from linux many people on the Internet say that the jar package can be decompressed, but the directory cannot be specified when the jar command is decompressed. we recommend that you use unzip to decompress the war package. Unzip-d specifies the directory [root @ oracleupload] # unzip-oqcommon.war-dcommon command name: unzip function... linux unzip war package command
Many people on the Internet say that the jar package can be decompressed, but the directory cannot be specified when the jar command is decompressed. we recommend that you use unzip to decompress the war package. Unzip-d specifies the directory [root @ oracle upload] # unzip-oq common. war-d common command name: unzip function description: decompress the zip file: unzip [-cflptuvz] [-agCjLMnoqsVX] [-P <密 码> [).Zip file] [file] [-d <目录> ] [-X <文件> ] Or unzip [-Z] Supplement: unzipis the decompression program for. ZIP compressed files. Parameters:-c displays the extracted results on the screen and converts the characters properly. -F updates the 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 ., However, it is hard to understand the pressure. The-u parameter is similar to the-f parameter. However, in addition to updating existing files, other files in the compressed files are also extracted to the directory. -V indicates that the detailed information is displayed. Or view the compressed file directory. -Z only displays the remarks of the compressed file. -A performs necessary character conversion on text files. -B does not need to convert characters in text files. -The file name in the C-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 more sequential processing. -N do not overwrite the original file during decompression. -O does not need to ask the user first. the unzip command will be executed and overwrite the original file. -P <密码> Use the zip password option. -When q runs, no information is displayed. -S converts the white space characters in the file name to the bottom line characters. -V retains the file version information of VMS. -X stores 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 <目录> Specifies the directory to be stored after the file is decompressed. -X <文件> Which files in the. zip compressed file are not processed. -Z unzip-Z is used to execute the zipinfo command. Command name: zip function description: compressed file. Syntax: zip [-AcdDfFghjJKlLmoqrSTuvVwXyz $] [-B <工 作目录> ] [-Ll] [-n <字 尾字符串> ] [-T <日 期时间> ] [- <压 缩效率> ] [Shrink files] [files...] [-I <范本样式> ] [-X <范本样式> ] Note: zip is a widely used compression program. after files are compressed, other compressed files with the ". zip" extension will be generated. Parameter quantity:-A adjusts the automatically decompressed files that can be executed. -B <工作目录> Specifies the directory for storing files temporarily. -C adds comments to each compressed file. -D. delete the specified file from the compressed file. -D. The directory name is not created in the compressed file. -F this parameter works similarly to the specified "-u" parameter, but not only updates existing files, if some files do not exist in the compressed file, this parameter is used to add it to the compressed file. -F try to repair damaged compressed files. -G compresses the file and attaches it to the existing compressed file, instead of creating a new compressed file. -H online help. -I <范本样式> Only files that meet the criteria are compressed. -J only saves the file name and its content, without storing any directory name. -J: delete unnecessary data before the compressed file. -K makes the file name in a MS-DOS-compatible format. -L replace the LF character with the LF + CR character when compressing a file. -Replace the LF + CR character with the LF character during ll compression. -L displays the copyright information. -M: After compressing the file and adding it to the compressed file, delete the original file, that is, move the file to the compressed file. -N <字尾字符串> Do not compress files with specific character strings. -O the file with the latest change time in the compressed file is used as the standard, and the change time of the compressed file is set to the same as that of the file. -Q does not show the instruction execution process. -R: process all files and subdirectories in the specified directory. The-S package contains System and hidden files. -T <日期时间> Set the date of the compressed file to the specified date. -T check whether each file in the backup file is correct. -U is used to change a newer file to a compressed file. -V displays the command execution process or version information. -V stores the file attributes of the VMS operating system. -W indicates the version number in the file name. this parameter is only valid in the VMS operating system. -X <范本样式> Exclude files that meet the conditions during scaling. -X does not save additional file attributes. -Y is directly connected to save the symbolic connection, rather than the file to which the connection points. this parameter is only valid in UNIX-like systems. -Z adds comments to the compressed file. -$ Name of the volume on which the first compressed file is stored. - <压缩效率> The compression efficiency is a value between 1 and 9. Example. compress all files and folders under the current directory into a test.zip file.-r indicates recursively compressing all files in the subdirectory [root @ mysql test] # zip-r test.zip. /* jar command to compress the war package: pack all files in the current directory into game. warjar-cvfM0 game. war. /-c create war package-v display process information-f-M-0 this is Arabic numerals, only package does not compress the meaning of decompress war package jar-xvf game. decompress war to the current directory
Related Article

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.