xref: /minix3/usr.bin/whereis/whereis.1 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc.\"	$NetBSD: whereis.1,v 1.15 2014/09/19 16:02:59 wiz Exp $
2d24fd34cSstux.\"
3d24fd34cSstux.\" Copyright (c) 1993
4d24fd34cSstux.\"	The Regents of the University of California.  All rights reserved.
5d24fd34cSstux.\"
6d24fd34cSstux.\" Redistribution and use in source and binary forms, with or without
7d24fd34cSstux.\" modification, are permitted provided that the following conditions
8d24fd34cSstux.\" are met:
9d24fd34cSstux.\" 1. Redistributions of source code must retain the above copyright
10d24fd34cSstux.\"    notice, this list of conditions and the following disclaimer.
11d24fd34cSstux.\" 2. Redistributions in binary form must reproduce the above copyright
12d24fd34cSstux.\"    notice, this list of conditions and the following disclaimer in the
13d24fd34cSstux.\"    documentation and/or other materials provided with the distribution.
14d24fd34cSstux.\" 3. Neither the name of the University nor the names of its contributors
15d24fd34cSstux.\"    may be used to endorse or promote products derived from this software
16d24fd34cSstux.\"    without specific prior written permission.
17d24fd34cSstux.\"
18d24fd34cSstux.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19d24fd34cSstux.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20d24fd34cSstux.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21d24fd34cSstux.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22d24fd34cSstux.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23d24fd34cSstux.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24d24fd34cSstux.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25d24fd34cSstux.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26d24fd34cSstux.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27d24fd34cSstux.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28d24fd34cSstux.\" SUCH DAMAGE.
29d24fd34cSstux.\"
30d24fd34cSstux.\"	@(#)whereis.1	8.3 (Berkeley) 4/27/95
31d24fd34cSstux.\"
32d24fd34cSstux.Dd April 3, 2003
33d24fd34cSstux.Dt WHEREIS 1
34d24fd34cSstux.Os
35d24fd34cSstux.Sh NAME
36d24fd34cSstux.Nm whereis
37d24fd34cSstux.Nd locate programs
38d24fd34cSstux.Sh SYNOPSIS
39d24fd34cSstux.Nm
40d24fd34cSstux.Op Fl p
41d24fd34cSstux.Ar program
42d24fd34cSstux.Op Ar program ...
43d24fd34cSstux.Sh DESCRIPTION
44d24fd34cSstuxThe
45d24fd34cSstux.Nm
46d24fd34cSstuxutility checks the standard binary directories for the specified programs,
47d24fd34cSstuxprinting out the paths of any it finds.
48d24fd34cSstux.Pp
49d24fd34cSstuxThe default path searched is the string returned by the
50d24fd34cSstux.Xr sysctl 8
51d24fd34cSstuxutility for the
52d24fd34cSstux.Dq user.cs_path
53d24fd34cSstuxstring.
54d24fd34cSstuxIf the
55d24fd34cSstux.Op Fl p
56d24fd34cSstuxoption is specified, then the value of the environment
57d24fd34cSstuxvariable
58d24fd34cSstux.Ev PATH
59d24fd34cSstuxis used instead.
60d24fd34cSstux.Sh EXIT STATUS
61d24fd34cSstuxThe
62d24fd34cSstux.Nm
63d24fd34cSstuxutility exits 0 on success, 1 on general error, 2 if only some
64d24fd34cSstuxprograms were located and 3 if none were.
65d24fd34cSstux.Sh COMPATIBILITY
66d24fd34cSstuxThe historic flags and arguments for the
67d24fd34cSstux.Nm
68d24fd34cSstuxutility are no longer available in this version.
69*0a6a1f1dSLionel Sambuc.Sh SEE ALSO
70*0a6a1f1dSLionel Sambuc.Xr whatis 1 ,
71*0a6a1f1dSLionel Sambuc.Xr which 1 ,
72*0a6a1f1dSLionel Sambuc.Xr sysctl 8
73d24fd34cSstux.Sh HISTORY
74d24fd34cSstuxThe
75d24fd34cSstux.Nm
76d24fd34cSstuxcommand appeared in
77d24fd34cSstux.Bx 3.0 .
78