jar: add Chinese translation (#5977)

This commit is contained in:
BillLucky 2021-05-18 01:47:25 +08:00 committed by GitHub
parent 93cafcd821
commit ba782f8b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
pages.zh/common/jar.md Normal file
View 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}}`