su - postgres psql l c dbname #Switch connection to a new database l #List available databases dt #List available tables q #Exit psql shell https://www.geeksforgeeks.org/postgresql-psql-commands/