[BACK]Return to whereis.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / which

Annotation of src/usr.bin/which/whereis.1, Revision 1.3

1.3     ! aaron       1: .\"    $OpenBSD: whereis.1,v 1.2 1998/06/15 17:56:10 mickey Exp $
1.1       millert     2: .\"    $NetBSD: whereis.1,v 1.4 1995/08/31 21:54:51 jtc Exp $
                      3: .\"
                      4: .\" Copyright (c) 1993
                      5: .\"    The Regents of the University of California.  All rights reserved.
                      6: .\"
                      7: .\" Redistribution and use in source and binary forms, with or without
                      8: .\" modification, are permitted provided that the following conditions
                      9: .\" are met:
                     10: .\" 1. Redistributions of source code must retain the above copyright
                     11: .\"    notice, this list of conditions and the following disclaimer.
                     12: .\" 2. Redistributions in binary form must reproduce the above copyright
                     13: .\"    notice, this list of conditions and the following disclaimer in the
                     14: .\"    documentation and/or other materials provided with the distribution.
                     15: .\" 3. All advertising materials mentioning features or use of this software
                     16: .\"    must display the following acknowledgement:
                     17: .\"    This product includes software developed by the University of
                     18: .\"    California, Berkeley and its contributors.
                     19: .\" 4. Neither the name of the University nor the names of its contributors
                     20: .\"    may be used to endorse or promote products derived from this software
                     21: .\"    without specific prior written permission.
                     22: .\"
                     23: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     24: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     25: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     26: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     27: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     28: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     29: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     30: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     31: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     32: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     33: .\" SUCH DAMAGE.
                     34: .\"
                     35: .\"    @(#)whereis.1   8.3 (Berkeley) 4/27/95
                     36: .\"
                     37: .Dd April 27, 1995
                     38: .Dt WHEREIS 1
                     39: .Os BSD 3
                     40: .Sh NAME
                     41: .Nm whereis
                     42: .Nd locate programs
                     43: .Sh SYNOPSIS
                     44: .Nm whereis
1.3     ! aaron      45: .Ar name Op Ar ...
1.1       millert    46: .Sh DESCRIPTION
                     47: The
                     48: .Nm whereis
                     49: utility checks the standard binary directories for the specified name,
                     50: printing out the paths of any it finds that are executable by the
                     51: user.
                     52: .Pp
                     53: The path searched is the string returned by the
                     54: .Xr sysctl 8
                     55: utility for the
                     56: .Dq user.cs_path
                     57: string.
                     58: .Sh RETURN VALUES
                     59: The
                     60: .Nm
                     61: utility exits with one of the following values:
                     62: .Bl -tag -width 4n
                     63: .It 0
1.3     ! aaron      64: All names were successfully resolved.
1.1       millert    65: .It 1
1.3     ! aaron      66: Some names were resolved but not all.
1.1       millert    67: .It 2
1.3     ! aaron      68: No names were resolved.
1.1       millert    69: .It -1
                     70: A system error occurred.
                     71: .El
                     72: .Sh SEE ALSO
                     73: .Xr which 1 ,
                     74: .Xr sysctl 8
                     75: .Sh COMPATIBILITY
                     76: The historic flags and arguments for the
                     77: .Nm whereis
                     78: utility are no longer available in this version.
                     79: .Sh HISTORY
                     80: The
                     81: .Nm whereis
1.2       mickey     82: command appeared in
                     83: .Bx 3.0 .