Replace anything within <placeholder>
accordingly
$ psql #logs in to default database & default user
$ sudo -u <rolename:postgres> psql #logs in with a particular user
\du
\dt
\l
\c <database>
\d <table>
or \d+ <table>
\q
$ createdb databasename
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️