man : whereis(1)
WHEREIS(1) OpenBSD Reference Manual WHEREIS(1)
whereis - locate programs
whereis [-a] name ...
The whereis utility 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
If the -a flag is given, whereis will return a list of all matches
instead of just the first match.
The whereis utility exits with one of the following values:
0 All names were successfully resolved.
1 Some names were resolved but not all.
2 No names were resolved.
apropos(1), find(1), locate(1), which(1), sysctl(8)
The historic flags and arguments for the whereis utility are no longer
available in this version.
The whereis command appeared in 3.0BSD.
OpenBSD 4.9 September 29, 2010 OpenBSD 4.9