You can use the Unzip command
Unzip project.war-d Project
This will extract the Project.war into the project directory under the current directory, and the parameter-D means to create the project directory
Attached: Unzip other parameter description
-X "File list" unzip the file but does not include the file specified in the file list
-T test the compressed file for damage, and do not understand the pressure
-V View the details of the compressed file, including the file size, filename, and compression ratio contained in the compressed file, and
-N does not overwrite existing files when extracting
-O overwrites files that already exist and does not require user confirmation
-D directory name unzip the compressed file to the specified directory
Similarly, the zip command is the same:
-R recursive compression to compress all files and subdirectories under the specified directory
-D Delete the specified file from within the compressed file
-I "file list" only compresses files in the file list
-X "file list" when compressing excludes files specified in the file list
-U update file to compressed file
-m compress file into compressed file, delete original file, move file to compressed file
-F attempt to repair corrupted compressed file
-T checks that each file within the compressed file is correct
-Compression level compression level is a 1~9 number
Example
The zip command can be used to compress files into a common zip format. The unzip command is used to extract the zip file. 1. I want to compress a file abc.txt and a directory dir1 into yasuo.zip:# zip-r yasuo.zip abc.txt dir12. I downloaded a yasuo.zip file to unzip: # Unzip Yasuo.zip3. I have abc1.zip,abc2.zip and abc3.zip in my current directory, and I want to unzip them together: # Unzip abc\?. Zip Comment:? represents a character, if * denotes any number of characters. 4. I have a very large compressed file large.zip, I do not want to decompress, just want to see what is inside it: # unzip-v LARGE.ZIP5. I downloaded a compressed file large.zip, want to verify that the compressed file is completely downloaded # unzip-t LARGE.ZIP6. I use the-v option to find that Music.zip compressed files have many directories and subdirectories, and the subdirectories are actually songs mp3 files, I want to download these files to the first level directory, rather than a layer of the directory: # unzip-j Music.zip
Linux Decompression War Pack