Annotation of src/usr.bin/mandoc/whatis.1, Revision 1.2
1.1 schwarze 1: .\" $OpenBSD: whatis.1,v 1.16 2011/10/09 14:39:49 jmc Exp $
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: .\"
32: .Dd $Mdocdate: October 9 2011 $
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.1 schwarze 45: .Ar command ...
46: .Sh DESCRIPTION
47: .Nm
48: looks up a given command and gives the header line from the manual page.
49: You can then use the
50: .Xr man 1
51: command to get more information.
52: .Nm
53: will match on a case insensitive basis and for multiple word entries
54: will match on each individual word.
55: .Pp
56: The options are as follows:
57: .Bl -tag -width Ds
58: .It Fl C Ar file
59: Specify an alternate configuration file in
60: .Xr man.conf 5
61: format.
62: The default is
63: .Pa /etc/man.conf .
64: .It Fl M Ar path
65: Override the list of standard directories
66: .Nm
67: searches for its database named
68: .Dq Pa whatis.db .
69: The supplied
70: .Ar path
71: must be a colon
72: .Pq Ql \&:
73: separated list of directories.
74: This search path may also be set using the environment variable
75: .Ev MANPATH .
76: .It Fl m Ar path
77: Augment the list of standard directories
78: .Nm
79: searches for its database named
80: .Dq Pa whatis.db .
81: The supplied
82: .Ar path
83: must be a colon-separated list of directories.
84: These directories will be searched before the standard directories
85: or the directories supplied with the
86: .Fl M
87: option or the
88: .Ev MANPATH
89: environment variable are searched.
1.2 ! schwarze 90: .It Fl S Ar arch
! 91: Restrict the search to pages for the specified
! 92: .Xr machine 1
! 93: architecture.
! 94: .Ar arch
! 95: is case insensitive.
! 96: By default, pages for all architectures are shown.
! 97: .It Fl s Ar section
! 98: Restrict the search to the specified section of the manual.
! 99: By default, pages from all sections are shown.
! 100: See
! 101: .Xr man 1
! 102: for a listing of sections.
1.1 schwarze 103: .El
104: .Sh ENVIRONMENT
105: .Bl -tag -width MANPATH
106: .It Ev MANPATH
107: The standard search path used by
108: .Xr man 1
1.2 ! schwarze 109: may be changed by specifying a path in the
1.1 schwarze 110: .Ev MANPATH
111: environment variable.
1.2 ! schwarze 112: If
! 113: .Ev MANPATH
! 114: begins with a colon, it is appended to the default list;
! 115: if it ends with a colon, it is prepended to the default list;
! 116: or if it contains two adjacent colons,
! 117: the standard search path is inserted between the colons.
! 118: If none of these conditions are met, it overrides the
! 119: standard search path.
1.1 schwarze 120: .El
121: .Sh FILES
122: .Bl -tag -width "/etc/man.conf" -compact
123: .It Pa whatis.db
1.2 ! schwarze 124: name of the
! 125: .Xr mandocdb 8
! 126: keyword database
! 127: .It Pa whatis.index
! 128: name of the
! 129: .Xr mandocdb 8
! 130: filename database
1.1 schwarze 131: .It Pa /etc/man.conf
132: default
133: .Xr man 1
134: configuration file
135: .El
136: .Sh SEE ALSO
137: .Xr apropos 1 ,
138: .Xr man 1 ,
139: .Xr whereis 1 ,
140: .Xr which 1 ,
141: .Xr man.conf 5 ,
142: .Xr makewhatis 8
143: .Sh HISTORY
144: The
145: .Nm
146: command first appeared in
147: .Bx 2 .
148: .Pp
149: The
150: .Fl M
151: option first appeared in
152: .Bx 4.3 Tahoe ;
153: .Fl m
154: in
155: .Bx 4.3 Reno ;
156: and
157: .Fl C
158: in
159: .Nx 1.0 .
160: .Sh AUTHORS
161: .An Bill Joy