which tell you where a program is located.

$ which php
/usr/bin/php

Very helpful if you install a lot of stuff which is put in “random” locations as /usr/bin, /bin, /usr/local/bin, /opt … the list goes on.