title: Remove redundant paths from $PATH variable
body: <p>I have defined the same path in the $PATH variable 6 times. </p>
  
  <p>I wasn't logging out to check whether it worked.</p>
  
  <p>How can I remove the duplicates?</p>
  
  <p>The $PATH variable looks like this:</p>
  
  <pre><code>echo $PATH
  
  /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin:/home/flacs/Programmes/USFOS/bin
  </code></pre>
  
  <p>How would I reset it to just</p>
  
  <pre><code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  </code></pre>