title: How to find location of "mongod" command?
body: <p>I would like to run MondoDB locally. I am unable to do so because upon running</p>
  <pre><code>mongod -config /usr/local/etc/mongod.conf
  </code></pre>
  <p>I get the error:</p>
  <pre><code>-bash: mongod: command not found
  </code></pre>
  <p>I saw in the answer to this question: <a href="https://stackoverflow.com/questions/22862808/mongod-command-not-found-os-x">Mongod: Command Not Found (OS X)</a>  that I need to add the name of the folder that contains the command to PATH.</p>
  <p>I saw in the answer to this question: <a href="https://stackoverflow.com/questions/2869100/shell-how-to-find-directory-of-some-command">Shell - How to find directory of some command?</a> that I can run &quot;type -a mongod&quot;, &quot;which mongod&quot;, among other solutions to find its location, but I do not get any output in my terminal upon running those commands.</p>
  <p>Could you please let me know how I could find the location on the &quot;mongod&quot; command so that I can run it locally? Thank you.</p>