Got a .zip file on Linux/Unix and don’t know what to do? If you have DB2, you can extract your content easily!
Norberto 2000000SR8 Comments (3) Visits (4634)
There are times when we have to extract content from .zip files (e.g.: installers, data from Windows, …), but don’t know what to do on Unix/Linux (gunzip simply doesn’t do the job!).
First you have to locate the DB2 installation directory (usually /opt/IBM/db2/v9.7 on Unix or /opt/ibm/db2/v9.7 on Linux – assuming you are on v9.7 – but it works also on v9.5 and v9.1).
On this example, it was DB2 v9.7 ESE on Linux, but as told before, it works also on Unix and other DB2 versions.
NOTICE: I tried this tip on DB2 Express-C v9.7 and it didn’t work. It seems it includes JRE (the Java Runtime Environment) only, instead of JDK (the Java Development Kit) - which is included with other distributions of DB2. It’s possible that even not having JDK on Express-C, you would find it embedded with other products, so it would worth checking (try find / –name javac as jar executable should be on same path).