2017-11-21

AIX: How to UNZIP files

Today, I tried unzipping but it seems the tool isn't installed or possibly not included.  So this JAR utility seems to have the capability to extract/decompress .zip files.

# unzip -l 51050818_1.ZIP
ksh: unzip:  not found
# whereis unzip
unzip:
# ls -l /usr/java5/bin/jar
-r-xr-xr-x    1 bin      bin          120370 Oct 22 2015  /usr/java5/bin/jar
# /usr/java5/bin/jar -xvf 51050818_1.ZIP
extracted: CDLABEL.ASC
extracted: CDLABEL.EBC
 inflated: COPY_TM.HTM
 inflated: COPY_TM.TXT
  created: DATA_UNITS/
  created: DATA_UNITS/SL_CONTROLLER_742/
 inflated: DATA_UNITS/LABELIDX.ASC
 inflated: LABEL.ASC
 inflated: LABEL.EBC
extracted: LABELIDX.ASC
 inflated: MD5FILE.DAT
 inflated: MID.XML
 inflated: SHAFILE.DAT
 inflated: VERSION.ASC
 inflated: VERSION.EBC

No comments:

Post a Comment