mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 11:58:15 +00:00
Update cheatsheets
This commit is contained in:
25
jar
Normal file
25
jar
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# jar
|
||||
|
||||
> Java applications/libraries packager.
|
||||
> More information: <https://docs.oracle.com/javase/tutorial/deployment/jar/basicsindex.html>.
|
||||
|
||||
- Recursively archive all files in the current directory into a .jar file:
|
||||
|
||||
`jar cf {{file.jar}} *`
|
||||
|
||||
- Unzip .jar/.war file to the current directory:
|
||||
|
||||
`jar -xvf {{file.jar}}`
|
||||
|
||||
- List a .jar/.war file content:
|
||||
|
||||
`jar tf {{path/to/file.jar}}`
|
||||
|
||||
- List a .jar/.war file content with verbose output:
|
||||
|
||||
`jar tvf {{path/to/file.jar}}`
|
||||
Reference in New Issue
Block a user