Psql command line tutorial and cheat sheet
To complement this, I recommend installing `pgcli`[<a href="https://www.pgcli.com/" rel="nofollow">https://www.pgcli.com/</a>]. It's a near-drop-in-replacement for psql, and gives autocompletion, syntax highlighting, and semicolon forgiveness.<p>Even as someone already comfortable with psql, pgcli is extremely handy.