You can try db2level . If there is a DB2 installed, usually you can get a message like the following: $ db2level DB21085I This instance or install (instance name, where applicable: “iidev20”) uses “64” bits and DB2 code release “SQL11015” with level identifier “0206010F”.
Where is DB2 installed Linux?
For non-root installations, Db2 database products are always installed in the $HOME /sqllib directory, where $HOME represents the non-root user’s home directory. For root installations, Db2 database products are installed, by default, in one of the following directories: AIX. /opt/IBM/db2/V11.
Where is DB2 installation directory?
After installation, the Db2 objects are created in various directories.
…
Directory structure for your installed Db2 database product (Linux®)
| Db2 Object | Location |
|---|---|
| Db2 commands | /opt/IBM/db2/V11.1/bin |
| Db2 error messages file (db2diag log file) | home/db2inst1/sqllib/db2dump |
| Db2 installation path | default is /opt/IBM/db2/V11.1 |