psqlopens the postgres consolepsql -d some_database_name -f some_sql_file.sqlexecutes the SQL in the given file within the database specified
\qquits the postgres console\llists all databases\c database_nameconnects you todatabase_name\dlists all tables of current database
SELECT * FROM some_table_name; will show all of the records for the given table name