\dn
This command is used to list All Schemas in the current PostgreSQL Database along with their owners.
Example Output:
List of schemas
Name | Owner
-------------+-------------
public | test_user
mydata | postgres
The \dn command is a PostgreSQL-specific meta-command used inside the psql command-line interface.
The default schema is usually public. Generally we use /dn to check existing schemas.