I have postgres installed on an ubuntu machine, and I am able to enter into the command line via something along the lines of:
postgres
$ sudo -u postgres psq