which: Which Program

1 
1 1 The 'which' Program
1 *********************
1 
1 'Which' takes one or more arguments.  For each of its arguments it
1 prints to stdout the full path of the executables that would have been
1 executed when this argument had been entered at the shell prompt.  It
1 does this by searching for an executable or script in the directories
1 listed in the environment variable 'PATH' using the same algorithm as
1 'bash(1)'.
1