DB2, PostgreSQL
DB2
login as linux user that was registered with the DB2 DBMS
db2start
connect to mydatabasename
db2
*
Postgre SQL
login as linux user that owns the database
psql mydatabasename
https://help.ubuntu.com/community/PostgreSQL
http://www.yolinux.com/TUTORIALS/LinuxTutorialPostgreSQL.html