how to connect to a server in postgresql ubuntu code example Example: ubuntu connect to postgres sudo su - postgres