title: psql - save results of command to a file
body: <p>I'm using psql's <code>\dt</code> to list all tables in a database and I need to save the results.</p>
  
  <p>What is the syntax to export the results of a psql command to a file?</p>