title: "command not found" when running shell script
body: <p>Here is the simple <code>script.sh</code> file I have:</p>
  
  <pre><code>#!/bin/bash
  pwd
  date
  ls -lg
  </code></pre>
  
  <p>I have used <code>chmod +x</code> to make the file executable, but when running it with <code>./script.sh</code> I get <code>command not found: pwd</code> <code>command not found: date</code> and only the <code>ls -lg</code> command works. I'm a bit perplexed as to why the first two commands aren't working because when I type them into the command terminal they work the way they should.</p>