|WHEREIS(1)||General Commands Manual||WHEREIS(1)|
whereisutility checks the standard binary directories for the specified name, printing out the paths of any it finds that are executable by the user.
The path searched is the string returned by the sysctl(8) utility for the “user.cs_path” string.
-a flag is given,
whereis will return a list of all matches instead of
just the first match.
whereisutility exits with one of the following values:
whereiscommand first appeared in 2BSD, but the original version was legally tainted and was not included as part of the 4.4BSD release, such that most of the original functionality was lost.
-a option first appeared in
|January 29, 2012||OpenBSD-5.1|