which - show full path of commands
which progname ...
Which takes a series of program names, and prints out the full pathname of the program that the shell would call to execute it. It does this by simulating the shells search- ing of the $PATH environment variable.
The exec(2,3) family.