How can I extract a .war file with Linux command prompt?
Jigar Joshi
Or
jar xvf myproject.war
A war file is just a zip file with a specific directory structure. So you can use unzip or the jar tool for unzipping.
But you probably don't want to do that. If you add the war file into the webapps directory of Tomcat the Tomcat will take care of extracting/installing the war file.
You can use the unzip
command.
来源:https://stackoverflow.com/questions/3833578/linux-command-for-extracting-war-file