tags:

views:

79

answers:

4

i have centOS on my VPS and i upload myproject.war file to the tomcat application server (/webapp folder). how can i extract the .war file with linux command prompt? i'm using puTTy.

A: 

You can use the unzip command.

tangens
+2  A: 

Using unzip

unzip -c whatever.war META-INF/MANIFEST.MF  

Using jar

jar xvf test.war
org.life.java
I actually think the `jar` command is better as it is designed to do just that.
extraneon
@extraneon added more info
org.life.java
+2  A: 

Or

jar xvf myproject.war

Raghuram
A: 

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.

Kdeveloper