title: How can I determine the interpreter that runs my bash shell?
body: <p>I was working on this <a href="https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks" rel="nofollow noreferrer">tutorial here</a> and I want to know the path so I can put it in my shell scripts on the top line as is good practice.</p>
  
  <p>I was told this is not accurate:</p>
  
  <pre><code>echo "$SHELL"
  </code></pre>
  
  <p>What is the correct way to determine the path to the interpreter for shell scripts?</p>
  
  <p>This is a shared hosting account and it is not obvious where it is located.</p>
  
  <p>This is a follow up to a similar but not duplicate <a href="https://stackoverflow.com/questions/31989125/why-do-my-bash-scripts-work-with-out-the-shebang">here</a>.</p>