title: How can I know which shell I am using?
body: <p>I am writing a shell script. The tutorial that I am reading have the first line like this :</p>
  
  <p><code>#!/usr/bin/env bash/</code></p>
  
  <p>but it isn't working for me. (<code>error : no such directory</code>)</p>
  
  <p>How can I find out which bash I am using and where is it located?</p>
  
  <p>Appreciate for any advice and help.</p>
  
  <p><strong>Thanks a lot. It works now</strong>.</p>
  
  <p><strong>solution is</strong>  <code>#!/usr/bin/env bash</code></p>
  
  <p>Another problem: Why it just can't read the word 'restart'</p>
  
  <p>my code in the start.sh:</p>
  
  <pre><code>#!/usr/bin/env bash/
  RESTART="apachectl restart"
  $RESTART
  </code></pre>
  
  <p>I does not work. </p>
  
  <pre><code>Usage: /usr/local/apache2/bin/httpd [-D name] [-d directory] [-f file]
                                  [-C "directive"] [-c "directive"]
                                  [-k start|restart|graceful|graceful-stop|sto                                                                             p]
                                  [-v] [-V] [-h] [-l] [-L] [-t] [-S]
  Options:
  -D name            : define a name for use in &lt;IfDefine name&gt; directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
  </code></pre>
  
  <p>why is it like that? it seems that it can read the word restart. </p>
  
  <p>Thank you all! I have fixed it now.</p>
  
  <p><strong>solution</strong>: edit the file in unix (vim/nano and whatever but not in windows)</p>
  
  <pre><code>Thank again :)
  </code></pre>