Quick Tip: Need to find the path for a shell command? Looking for the path for bash to patch the shellshock vulnerability, for example?

Okay,

This is a real quick one. I have been in and about Linux for quite a while now and just never came across this before. Need to find the path for a shell command? Like looking for where “bash” is located on your system so you can patch the shellshock vulnerability? Just type in:

which bash

or which (heh) ever command you are looking for the path for.

Like in this case the response will most likely be:

$which bash
/bin/bash

And there is the path to your command. Easy Peasy.