- NetBSD Manual Pages
WHEREIS(1) NetBSD General Commands Manual WHEREIS(1)
Powered by man-cgi (2021-06-01).
Maintained for NetBSD
by Kimmo Suominen.
Based on man-cgi by Panagiotis Christias.
whereis -- locate programs
whereis [-p] program [program ...]
The whereis utility checks the standard binary directories for the speci-
fied programs, printing out the paths of any it finds.
The default path searched is the string returned by the sysctl(8) utility
for the ``user.cs_path'' string. If the [-p] option is specified, then
the value of the environment variable PATH is used instead.
The whereis utility exits 0 on success, 1 on general error, 2 if only
some programs were located and 3 if none were.
The historic flags and arguments for the whereis utility are no longer
available in this version.
whatis(1), which(1), sysctl(8)
The whereis command appeared in 3.0BSD.
NetBSD 10.99 April 3, 2003 NetBSD 10.99