title: How to export a variable in Bash
body: <p>I need to set a system environment variable from a Bash script that would be available outside of the current scope.  So you would normally export environment variables like this:</p>
  <pre><code>export MY_VAR=/opt/my_var
  </code></pre>
  <p>But I need the environment variable to be available at a system level though.  Is this possible?</p>