check to see how many postgres is installed in linux code example Example: check postgres version psql --version