Linux command for extracting war file?

前端 未结 5 587
借酒劲吻你
借酒劲吻你 2020-12-23 14:03

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

5条回答
  •  囚心锁ツ
    2020-12-23 14:56

    Using unzip

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

    It will print the output in terminal.

    And for extracting all the files,

     unzip whatever.war
    

    Using jar

    jar xvf test.war
    

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

提交回复
热议问题