Linux命令提取战争文件? [英] Linux command for extracting war file?
本文介绍了Linux命令提取战争文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Linux命令提示符下提取.war文件?
How can I extract a .war file with Linux command prompt?
推荐答案
Using unzip
unzip -c whatever.war META-INF/MANIFEST.MF
它将在终端打印输出.
要提取所有文件,
unzip whatever.war
使用 jar
Using jar
jar xvf test.war
注意! jar
命令会将战争内容提取到当前目录.不到子目录(就像Tomcat一样).
Note! The jar
command will extract war contents to current directory. Not to a subdirectory (like Tomcat does).
这篇关于Linux命令提取战争文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文