Linux Command to decompress the war package
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 <password> ][.zip file] [file] [-d <directory>] [-x <File>] Or unzip [-Z] additional instructions: unzipping is 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 <password> 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 <directory> specifies the directory to be stored after the file is decompressed. -X <File> indicates 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 <work directory>] [-ll] [-n <character tail string>] [-t <date and time>] [-< compression efficiency>] [Compression Files] [files...] [-I <template style>] [-x <template style>] Note: zip is a widely used compression program. After the file is compressed, it will be generated ". zip. Parameter quantity:-A adjusts the automatically decompressed files that can be executed. -B <working directory> refers to the directory for temporarily storing files. -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 <template style> only compresses files that meet the conditions. -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 <character string> does 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 <date and time> sets 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 <template style> to exclude files that meet the requirements during compression. -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. -<Compression efficiency> the compression efficiency is a value ranging from 1 to 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