Can't log into psql command line



Just installed postgres and ran the following command to login to psql:

` sudo -u postgres psql

The issue is I don’t remember my “[SUDO] password for ubuntu”`

What are my options to reset it, or finding out my old pw?


Try sudo sudo -u postgres psql