title: How to find directory of some command?
body: <p>I know that when you are on shell, the only commands that can be used are the ones that can be found on some directory set on PATH.
  Even I don't know how to see what dirs are on my PATH variable (and this is another good question that could be answered), what I'd like to know is:</p>
  <p>I come to shell and write:</p>
  <pre><code>$ lshw
  </code></pre>
  <p>I want to know a command on shell that can tell me WHERE this command is located. In other words, where this &quot;executable file&quot; is located?</p>
  <p>Something like:</p>
  <pre><code>$ location lshw
  /usr/bin
  </code></pre>