3dj4qa
Last Updated: February 25, 2016
·
328
· micrub

List jar file content using command line utils

Using jar utility

  1. t for list
  2. v for verbose
  3. f for Sets the file specified by the jarfile operand
λ ~/ jar tvf example-0.1.0-SNAPSHOT.jar
0 Mon Nov 10 22:27:44 IST 2014 public/
0 Mon Nov 10 22:54:10 IST 2014 public/js/
107 Mon Nov 10 22:43:08 IST 2014 public/js/c.js

λ ~/ jar tf example-0.1.0-SNAPSHOT.jar
public/
public/video.html
public/js/
public/js/c.js

Using unzip utility

  1. l for list
  2. v for verbose
 λ ~/ unzip -lv example-0.1.0-SNAPSHOT.jar
0  Defl:N        2   0% 2014-11-10 22:27 00000000  public/
0  Defl:N        2   0% 2014-11-10 22:54 00000000  public/js/
107  Defl:N      106   1% 2014-11-10 22:43 db653747  public/js/c.js

Using vim !!!

vim  example-0.1.0-SNAPSHOT.jar
Filed Under