Linux command for extracting war file?

Viewed 257645

How can I extract a .war file with Linux command prompt?

6 Answers

Extracting a specific folder (directory) within war file:

# unzip <war file> '<folder to extract/*>' -d <destination path> 
unzip app##123.war 'some-dir/*' -d extracted/

You get ./extracted/some-dir/ as a result.

Following command will help you.

unzip application.war -d output/
Related