how to check postgres version in ubuntu 18.04 code example Example: check postgres version in ubuntu $ locate bin/postgres /usr/lib/postgresql/9.3/bin/postgres