There are some basic postgres commands, those we use daily basis like listing database, switching database, listing tables etc.

  1. Listing Database
\l
# or
\list

2. Switching Database

\connect sales
# or
\c sales

3. Listing Tables

\dt