psql
opens the postgres consolepsql -d some_database_name -f some_sql_file.sql
executes the SQL in the given file within the database specified
\q
quits the postgres console\l
lists all databases\c database_name
connects you todatabase_name
\d
lists all tables of current database
SELECT * FROM some_table_name;
will show all of the records for the given table name