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