Linux War Package Decompression (Tomcat-uploaded war package backup)

Source: Internet
Author: User

Common tar.gz, tar.bz2 and so often use will remember how to decompress, recently encountered the project Deployment War package to the server, because the file is relatively large, upload is not convenient, want to back up the war package, do not want to backup under Tomcat has been unpacked folder. So the search record is as follows:

Reference from: http://www.2cto.com/os/201308/239355.html

The method is to use unzip.

Unzip -oq webapp.war-d WebApp

Appendix: Use of Unzip

Command name:Unzipfunction Description: Unzip the zip file syntax:Unzip[-cflptuvz] [-AGCJLMNOQSVX] [-p < password;] [. zip file] File [-D < directory;] [-x < file;] orUnzip[-Z] Supplemental Note: Unzip is the unzip program for. zip compressed files. Parameters:-C Displays the results of the decompression to the screen and converts the characters appropriately. -F Update the existing file. -L display the files contained within the compressed file. -P and-similar to the C parameter, the extracted results are displayed on the screen, but no conversions are performed. -t check that the compressed file is correct. , but did not understand the pressure. -U and-The f parameter is similar, but in addition to updating the existing file, the other files in the compressed file are extracted to the directory. -V performs yes when the detailed information is displayed. or view the compressed files directory, but do not press. -Z Displays only the memo text for the compressed file. -a make the necessary character conversions for the text file. -b Do not convert the text file to character. -the file names in the C compressed file are case sensitive. -J does not handle directory paths that are contained in compressed files. -L Change all the file names in the compressed file to lowercase. -M sends the output to the more program processing. -n Do not overwrite the original file when extracting. -o do not need to ask the user first, unzip overwrite the original file after execution. -p< Password >Use the zip password option. -Q does not display any information when executing. -s converts white space characters in the file name to a baseline character. -V Keep the file version information of the VMS. -X unzip while back to file the original Uid/GID. [. zip file] Specifies a. zip compressed file. [file] Specifies which files in the. zip archive to process. -d< Catalogue >Specifies the directory to be stored after the file has been decompressed. -x< File >specifies which files in the. zip archive are not processed. -ZUnzip-Z equals execute zipinfo instruction.

Appendix 2:zip the use of packaging

Command name:Zipfunction Description: Compress the file. Syntax:Zip[-acddffghjjkllmoqrstuvvwxyz$] [-B < working directory;] [-ll] [-N < Word tail string;] [-T < date time;] [-< compression efficiency;] [Compressed file] [File ...] [-i < template style;] [-x < Template style >] Add-on: Zip is a wide range of compression programs, the file is compressed after it will produce a". zip"the compressed file for the extension. Parameters:-A Adjust the executable auto-unzip file. -b< working directory >Specifies the directory where files are temporarily stored. -C Add comments for each compressed file. -d deletes the specified file from within the compressed file. -The directory name is not established within the D compressed file. -F The effect of this parameter and the specified"- u"parameters are similar, but not only update the existing files, if some files do not exist in the compressed file, the use of this parameter will be added to the compressed file. -F try to repair a corrupted compressed file. -g The file is compressed and appended to the existing compressed file, rather than creating a new compressed file. -h online Help. -i< Template Style >only files that match the criteria are compressed. -J saves only the file name and its contents, not any directory names. -J Delete unnecessary data before compressing the file. -K using ms-file name in DOS compatible format. -L When compressing a file, replace the LF character into lf+The CR character. -ll compressing files, put lf+The CR character is replaced by the LF character. -L Display copyright information. -m after compressing the file and adding the compressed file, delete the original file, then move the file to the compressed file. -n< Tail string >files with a specific string of characters are not compressed. -o Set the time for the compressed file to be the same as the file that has the most recent change time in the compressed file. -Q does not show the instruction execution process. -R recursively handles all files and subdirectories under the specified directory. -S contains system and hidden files. -t< Date Time >sets the date of the compressed file to the specified date. -T Check that each file in the backup file is correct. -u replace newer files into compressed files. -v Displays the instruction execution process or displays the version information. -V Save the file properties of the VMS operating system. -WIf the version number is in the file name, this parameter is only valid under the VMS operating system. -x< Template Style >excludes files that match the criteria when compressing. -X does not save additional file attributes. -y Saves the symbolic connection directly, not the file that the connection points to, and this parameter is only valid under systems such as UNIX. -Z Add a comment to the compressed file. -Save the volume book name of the disk on which the first compressed file is located. -< compression Efficiency > Compression efficiency is a 1-a value of 9. All files and folders under the current directory are compressed into test.zip files.-R means all files in the recursive compressed subdirectory [[email protected] test]#Zip-R test.Zip./*

Linux War Package Decompression (Tomcat-uploaded war package backup)

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.