1 .\" $Id: whatis.1,v 1.8 2012/03/24 01:54:43 kristaps Exp $
3 .\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: March 24 2012 $
22 .Nd search for manual pages by page names
34 utility searches databases generated by
36 for manuals containing the word
38 in their page name, ignoring case.
39 It returns the header lines from all matching pages.
42 command to get more information.
48 databases in the default paths stipulated by
50 If standard output is a TTY, a result may be selected from a list and
51 its manual displayed with the pager.
53 The options are as follows:
56 Specify an alternative configuration
62 Use the colon-separated
64 instead of the default list of paths searched for
67 Invalid paths, or paths without manual databases, are ignored.
69 Prepend the colon-separated
71 to the list of paths searched for
74 Invalid paths, or paths without manual databases, are ignored.
76 Search only for a particular architecture.
78 Search only for a manual section.
81 for a listing of manual sections.
84 Results are sorted by manual title, with output formatted as
86 .D1 title(sec) \- description
90 is the manual's title (note multiple manual names may exist for one
93 is the manual section, and
95 is the manual's short description.
96 If an architecture is specified for the manual, it is displayed as
98 .D1 title(cat/arch) \- description
100 If on a TTY, results are prefixed with a numeric identifier.
102 .D1 [index] title(cat) \- description
104 One may choose a manual be entering the index at the prompt.
105 Valid choices are displayed using
111 Source pages are formatted with
113 preformatted pages with
117 is identical to running
121 .Dl $ apropos -- -i 'Nm~[[:<:]]term[[:>:]]'
125 Default pager for manuals.
126 If this is unset, falls back to
129 The second choice for a manual pager.
130 If this is unset, use
133 Colon-separated paths modifying the default list of paths searched for
135 Invalid paths, or paths without manual databases, are ignored.
142 it is appended to the default list;
145 it is prepended to the default list; else if it contains
147 the default list is inserted between the colons.
148 If none of these conditions are met, it overrides the default list.
151 .Bl -tag -width "/etc/man.conf" -compact
175 utility first appeared in
177 It was rewritten from scratch as part of the
188 The current version was written by
189 .An Kristaps Dzonsons ,
190 .Mt kristaps@bsd.lv .