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