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

Annotation of src/usr.bin/mandoc/whatis.1, Revision 1.9

1.9     ! schwarze    1: .\"    $OpenBSD: whatis.1,v 1.8 2013/07/13 19:27:46 schwarze Exp $
1.1       schwarze    2: .\"
                      3: .\" Copyright (c) 1989, 1990, 1993
                      4: .\"    The Regents of the University of California.  All rights reserved.
                      5: .\"
                      6: .\" Redistribution and use in source and binary forms, with or without
                      7: .\" modification, are permitted provided that the following conditions
                      8: .\" are met:
                      9: .\" 1. Redistributions of source code must retain the above copyright
                     10: .\"    notice, this list of conditions and the following disclaimer.
                     11: .\" 2. Redistributions in binary form must reproduce the above copyright
                     12: .\"    notice, this list of conditions and the following disclaimer in the
                     13: .\"    documentation and/or other materials provided with the distribution.
                     14: .\" 3. Neither the name of the University nor the names of its contributors
                     15: .\"    may be used to endorse or promote products derived from this software
                     16: .\"    without specific prior written permission.
                     17: .\"
                     18: .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     19: .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     20: .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     21: .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     22: .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     23: .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     24: .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     25: .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     26: .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     27: .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     28: .\" SUCH DAMAGE.
                     29: .\"
                     30: .\"     @(#)whatis.1   8.1 (Berkeley) 6/6/93
                     31: .\"
1.9     ! schwarze   32: .Dd $Mdocdate: July 13 2013 $
1.1       schwarze   33: .Dt WHATIS 1
                     34: .Os
                     35: .Sh NAME
                     36: .Nm whatis
                     37: .Nd describe what a command is
                     38: .Sh SYNOPSIS
                     39: .Nm whatis
                     40: .Op Fl C Ar file
                     41: .Op Fl M Ar path
                     42: .Op Fl m Ar path
1.2       schwarze   43: .Op Fl S Ar arch
                     44: .Op Fl s Ar section
1.4       schwarze   45: .Ar name ...
1.1       schwarze   46: .Sh DESCRIPTION
1.4       schwarze   47: The
1.1       schwarze   48: .Nm
1.4       schwarze   49: utility looks up the given commands and shows the header lines
                     50: from the manual pages.
1.1       schwarze   51: You can then use the
                     52: .Xr man 1
                     53: command to get more information.
                     54: .Nm
1.4       schwarze   55: will match manual page
                     56: .Ar names
                     57: on a case insensitive basis and for multiple word entries
1.1       schwarze   58: will match on each individual word.
                     59: .Pp
                     60: The options are as follows:
                     61: .Bl -tag -width Ds
                     62: .It Fl C Ar file
1.4       schwarze   63: Specify an alternate configuration
                     64: .Ar file
                     65: in
1.1       schwarze   66: .Xr man.conf 5
                     67: format.
                     68: The default is
                     69: .Pa /etc/man.conf .
                     70: .It Fl M Ar path
                     71: Override the list of standard directories
                     72: .Nm
                     73: searches for its database named
1.5       schwarze   74: .Dq Pa mandoc.db .
1.1       schwarze   75: The supplied
                     76: .Ar path
                     77: must be a colon
                     78: .Pq Ql \&:
                     79: separated list of directories.
                     80: This search path may also be set using the environment variable
                     81: .Ev MANPATH .
                     82: .It Fl m Ar path
                     83: Augment the list of standard directories
                     84: .Nm
                     85: searches for its database named
1.5       schwarze   86: .Dq Pa mandoc.db .
1.1       schwarze   87: The supplied
                     88: .Ar path
                     89: must be a colon-separated list of directories.
                     90: These directories will be searched before the standard directories
                     91: or the directories supplied with the
                     92: .Fl M
                     93: option or the
                     94: .Ev MANPATH
                     95: environment variable are searched.
1.2       schwarze   96: .It Fl S Ar arch
                     97: Restrict the search to pages for the specified
                     98: .Xr machine 1
                     99: architecture.
                    100: .Ar arch
                    101: is case insensitive.
                    102: By default, pages for all architectures are shown.
                    103: .It Fl s Ar section
                    104: Restrict the search to the specified section of the manual.
                    105: By default, pages from all sections are shown.
                    106: See
                    107: .Xr man 1
                    108: for a listing of sections.
1.1       schwarze  109: .El
                    110: .Sh ENVIRONMENT
                    111: .Bl -tag -width MANPATH
                    112: .It Ev MANPATH
                    113: The standard search path used by
                    114: .Xr man 1
1.9     ! schwarze  115: may be overridden by specifying a path in the
1.1       schwarze  116: .Ev MANPATH
                    117: environment variable.
1.2       schwarze  118: If
                    119: .Ev MANPATH
                    120: begins with a colon, it is appended to the default list;
                    121: if it ends with a colon, it is prepended to the default list;
                    122: or if it contains two adjacent colons,
                    123: the standard search path is inserted between the colons.
                    124: If none of these conditions are met, it overrides the
                    125: standard search path.
1.1       schwarze  126: .El
                    127: .Sh FILES
                    128: .Bl -tag -width "/etc/man.conf" -compact
1.5       schwarze  129: .It Pa mandoc.db
1.2       schwarze  130: name of the
1.6       schwarze  131: .Xr makewhatis 8
1.2       schwarze  132: keyword database
1.1       schwarze  133: .It Pa /etc/man.conf
                    134: default
                    135: .Xr man 1
                    136: configuration file
                    137: .El
1.3       schwarze  138: .Sh EXIT STATUS
                    139: .Ex -std
1.1       schwarze  140: .Sh SEE ALSO
                    141: .Xr apropos 1 ,
                    142: .Xr man 1 ,
                    143: .Xr whereis 1 ,
                    144: .Xr which 1 ,
                    145: .Xr man.conf 5 ,
                    146: .Xr makewhatis 8
                    147: .Sh HISTORY
1.4       schwarze  148: Part of the functionality of
                    149: .Nm
                    150: was already provided by the former
                    151: .Nm manwhere
                    152: utility in
                    153: .Bx 1 .
1.1       schwarze  154: The
                    155: .Nm
                    156: command first appeared in
                    157: .Bx 2 .
1.6       schwarze  158: It was rewritten from scratch for
1.3       schwarze  159: .Ox 5.1 .
1.1       schwarze  160: .Pp
                    161: The
                    162: .Fl M
1.3       schwarze  163: option and the
                    164: .Ev MANPATH
                    165: variable first appeared in
                    166: .Bx 4.3 ;
1.1       schwarze  167: .Fl m
                    168: in
                    169: .Bx 4.3 Reno ;
1.3       schwarze  170: .Fl C
                    171: in
1.7       schwarze  172: .Bx 4.4 Lite1 ;
1.1       schwarze  173: and
1.3       schwarze  174: .Fl S
                    175: and
                    176: .Fl s
1.1       schwarze  177: in
1.3       schwarze  178: .Ox 5.1 .
1.1       schwarze  179: .Sh AUTHORS
1.3       schwarze  180: .An -nosplit
1.1       schwarze  181: .An Bill Joy
1.4       schwarze  182: wrote
                    183: .Nm manwhere
                    184: in 1977
                    185: and the original
1.3       schwarze  186: .Bx
                    187: .Nm
1.7       schwarze  188: in February 1979.
1.3       schwarze  189: The current version was written by
1.8       schwarze  190: .An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .