0
All names were successfully resolved.
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:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
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.
61 releases since OpenBSD 2.1; the text changed 10 times.
-1 until OpenBSD 4.8.