title: How to permanently set $PATH on Linux/Unix
body: <p>On Linux, how can I add a directory to the $PATH so it remains persistent across different sessions?</p>
  <h4>Background</h4>
  <p>I'm trying to add a directory to my path so it will always be in my Linux path. I've tried:</p>
  <pre><code>export PATH=$PATH:/path/to/dir
  </code></pre>
  <p>This works, however each time I exit the terminal and start a new terminal instance, this path is lost, and I need to run the export command again.</p>
  <p>How can I do it so this will be set permanently?</p>