Packaging and decompression commands: jar and tar

java war packaging and decompression commands

Packaged as follows:

// Package the current directory into a war package

jar   cvf   temp.war   */  .

Command format:

java cvf package file name directory to be packaged package file save path

Decompression is naturally:

 

jar xvf temp.war

-v, --verbose

show the execution of the command

-x, --extract, --get

Parse files from archive

-c, --create

Create new archive

 

 

jar is similar to the tar command under linux

tar -zcvf package

tar -zxvf to decompress

Packed and compressed with gzip to ***.tar.gz file

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326849843&siteId=291194637