|WHICH(1)||General Commands Manual||WHICH(1)|
whichtakes a list of names and looks for the files which would be executed had these names been given as commands. Each argument is searched for along the user's path.
-a flag is given,
which will return a list of all matches instead of
just the first match.
PATHis not set or is empty,
whichwill use the system's default search path.
whichutility exits with one of the following values:
whichalso exists as a built-in to csh(1), though with a different syntax.
whichcommand first appeared in 3.0BSD.
-a option first appeared in
|January 14, 2016||OpenBSD-current|