Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
How can I extract a .war file with a Linux command prompt?

1 Answer

0 votes
by (36.8k points)

Using the unzip

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

It will print the output in the terminal.

And for extracting all these files,

 unzip whatever.war

Using the jar

jar xvf test.war

Note! The jar command will extract war contents to the current directory. Not to a subdirectory (like Tomcat does).

Come and join linux training to gain great knowledge.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Apr 11, 2021 in Linux by dev_sk2311 (44.4k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...