connect to postgres database command line ubuntu code example Example: ubuntu connect to postgres sudo su - postgres