System Grab Bag

View all TLDR pages from common (or from all pages)

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}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.