title: Raspbian: Reset Bash environment variables
body: <p>I was trying to get a crontab working on my Raspberry PI and I think I messed up my environment variables. I can execute a file from the GUI by right-clicking and choosing execute. However I cannot get the same file to run from command line. I can use <code>ls</code> to see the file (ChromeTab.sh), but when I type <code>ChromeTab.sh</code>, I get <strong>"bash: ChromeTab.sh: command not found"</strong>.</p>
  
  <p>I think I messed up my environment variables when I put this in the crontab. </p>
  
  <pre><code>SHELL=/bin/sh
  PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  </code></pre>
  
  <p>I followed the examples in <a href="https://askubuntu.com/questions/117978/script-doesnt-run-via-crontab-but-works-fine-standalone">Script doesn't run via <code>crontab</code> but works fine standalone</a>.</p>
  
  <p>Any idea what I'm doing wrong?</p>
  
  <p><strong>UPDATE:</strong> 
  OK,
  Let me clarify what efforts I took on my part BEFORE posting my question on stackoverflow before getting anymore downvotes.</p>
  
  <p>First of all thanks S. Adam Nissley for your suggestions.
  In answer to your steps listed above.
  Running this from home path, or fully qualified path does Not work as stated. 
  Error: bash: ChromeTab.sh: command not found</p>
  
  <pre><code>./ChromeTab.sh
  </code></pre>
  
  <p>I have also ensured read/write and execute permissions on the file with</p>
  
  <pre><code>chmod +x ./ChromeTab.sh
  </code></pre>
  
  <p>Also, my bash script starts off with the following shebang</p>
  
  <pre><code>#!/bin/sh
  </code></pre>
  
  <p>So, what i'm trying to say is, regardless of using crontab or not the issue at hand is that I can not even execute the script from command line. This started happening after I was messing around with the environment variables in the crontab. I'm looking for a way to revert to the situation where I can at least run/execute bash commands from the terminal. </p>
  
  <p>The only way I can effectively execute this script is (right-click execute) through the GUI.</p>