How to unzip a file using the command line?


Which commands can be used via the command line to unzip a file?
Preferably something built into Windows or open source/free tools.

Best Answer

If you already have Java Development Kit on your PC and the bin directory is in your path (in most cases), you can use the command line:

jar xf

or if not in your path:

C:\Java\jdk1.6.0_03\bin>jar xf

Complete set of options for the jar tool available here.


Extract jar file
    jar x[v]f jarfile [inputfiles] [-Joption] 
    jar x[v] [inputfiles] [-Joption]