One of the most important utility to locate programs in Linux is: which.
For example, if you want to find exactly where the diff program resides on the file system, please run:
$ which diff
If which does not find the program, whereis is a good alternative because it looks for packages in a broader range of system directories:
$ whereis diff