3 which \- examine $PATH to see which file will be executed
18 .EX "which a.out" "Tells which \fIa.out\fR will be executed"
21 The $PATH shell variable controls the
24 If a command \fIa.out\fR is given, the shell first tries to find an
25 executable file in the working directory.
26 If that fails, it looks in various system directories, such as
27 \fI/bin\fR and \fI/usr/bin\fR.
28 The\fR which\fR command makes the same search and gives the absolute
29 path of the program that will be chosen, followed by other occurrences
30 of the file name along the path.