Sometimes it could be useful to know which program are we using (in the case we have different versions installed). The programs are used depending on their directory and how is that directory added in the PATH.
For example, if we have two different versions of git
, one from Apple and other installed with brew
. We can know which one we're using by calling:
git --version
git version 1.9.5 (Apple Git-50.3)
which git
/usr/bin/git