psql -h $IP -p 5432 -U postgres

Connect to PostgreSQL to enumerate databases, dump credentials, and run commands via COPY TO PROGRAM

Command: Linux

References:

https://www.postgresql.org/docs/current/app-psql.html