jar: add Chinese translation (#5977)
This commit is contained in:
20
pages.zh/common/jar.md
Normal file
20
pages.zh/common/jar.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# jar
|
||||||
|
|
||||||
|
> Java 应用程序 / 类库打包程序。
|
||||||
|
> 更多信息见:<https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html>.
|
||||||
|
|
||||||
|
- 将当前目录中的所有文件递归归档到 `.jar` 文件中:
|
||||||
|
|
||||||
|
`jar cf {{file.jar}} *`
|
||||||
|
|
||||||
|
- 将 `.jar` / `.war` 文件解压缩到当前目录:
|
||||||
|
|
||||||
|
`jar -xvf {{file.jar}}`
|
||||||
|
|
||||||
|
- 列出 `.jar` / `.war` 文件内容:
|
||||||
|
|
||||||
|
`jar tf {{path/to/file.jar}}`
|
||||||
|
|
||||||
|
- 列出带有详细输出的 `.jar` / `.war` 文件内容:
|
||||||
|
|
||||||
|
`jar tvf {{path/to/file.jar}}`
|
Reference in New Issue
Block a user