check version installed of postgres in linux code example Example: check postgres version psql --version