xref: /freebsd/contrib/mandoc/apropos.1 (revision 7295610f5da64ab1818458ce007d9eb924496330)
1*7295610fSBaptiste Daroussin.\"	$Id: apropos.1,v 1.49 2018/11/22 12:33:52 schwarze Exp $
261d06d6bSBaptiste Daroussin.\"
361d06d6bSBaptiste Daroussin.\" Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
4*7295610fSBaptiste Daroussin.\" Copyright (c) 2011,2012,2014,2017,2018 Ingo Schwarze <schwarze@openbsd.org>
561d06d6bSBaptiste Daroussin.\"
661d06d6bSBaptiste Daroussin.\" Permission to use, copy, modify, and distribute this software for any
761d06d6bSBaptiste Daroussin.\" purpose with or without fee is hereby granted, provided that the above
861d06d6bSBaptiste Daroussin.\" copyright notice and this permission notice appear in all copies.
961d06d6bSBaptiste Daroussin.\"
1061d06d6bSBaptiste Daroussin.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1161d06d6bSBaptiste Daroussin.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1261d06d6bSBaptiste Daroussin.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1361d06d6bSBaptiste Daroussin.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1461d06d6bSBaptiste Daroussin.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1561d06d6bSBaptiste Daroussin.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1661d06d6bSBaptiste Daroussin.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1761d06d6bSBaptiste Daroussin.\"
18*7295610fSBaptiste Daroussin.Dd $Mdocdate: November 22 2018 $
1961d06d6bSBaptiste Daroussin.Dt APROPOS 1
2061d06d6bSBaptiste Daroussin.Os
2161d06d6bSBaptiste Daroussin.Sh NAME
2261d06d6bSBaptiste Daroussin.Nm apropos ,
2361d06d6bSBaptiste Daroussin.Nm whatis
2461d06d6bSBaptiste Daroussin.Nd search manual page databases
2561d06d6bSBaptiste Daroussin.Sh SYNOPSIS
2661d06d6bSBaptiste Daroussin.Nm
2761d06d6bSBaptiste Daroussin.Op Fl afk
2861d06d6bSBaptiste Daroussin.Op Fl C Ar file
2961d06d6bSBaptiste Daroussin.Op Fl M Ar path
3061d06d6bSBaptiste Daroussin.Op Fl m Ar path
3161d06d6bSBaptiste Daroussin.Op Fl O Ar outkey
3261d06d6bSBaptiste Daroussin.Op Fl S Ar arch
3361d06d6bSBaptiste Daroussin.Op Fl s Ar section
3461d06d6bSBaptiste Daroussin.Ar expression ...
3561d06d6bSBaptiste Daroussin.Sh DESCRIPTION
3661d06d6bSBaptiste DaroussinThe
3761d06d6bSBaptiste Daroussin.Nm apropos
3861d06d6bSBaptiste Daroussinand
3961d06d6bSBaptiste Daroussin.Nm whatis
4061d06d6bSBaptiste Daroussinutilities query manual page databases generated by
4161d06d6bSBaptiste Daroussin.Xr makewhatis 8 ,
4261d06d6bSBaptiste Daroussinevaluating
4361d06d6bSBaptiste Daroussin.Ar expression
4461d06d6bSBaptiste Daroussinfor each file in each database.
4561d06d6bSBaptiste DaroussinBy default, they display the names, section numbers, and description lines
4661d06d6bSBaptiste Daroussinof all matching manuals.
4761d06d6bSBaptiste Daroussin.Pp
4861d06d6bSBaptiste DaroussinBy default,
4961d06d6bSBaptiste Daroussin.Nm
5061d06d6bSBaptiste Daroussinsearches for
5161d06d6bSBaptiste Daroussin.Xr makewhatis 8
5261d06d6bSBaptiste Daroussindatabases in the default paths stipulated by
5361d06d6bSBaptiste Daroussin.Xr man 1
54*7295610fSBaptiste Daroussinand uses case-insensitive extended regular expression matching
5561d06d6bSBaptiste Daroussinover manual names and descriptions
5661d06d6bSBaptiste Daroussin.Pq the Li \&Nm No and Li \&Nd No macro keys .
5761d06d6bSBaptiste DaroussinMultiple terms imply pairwise
5861d06d6bSBaptiste Daroussin.Fl o .
5961d06d6bSBaptiste Daroussin.Pp
6061d06d6bSBaptiste Daroussin.Nm whatis
6161d06d6bSBaptiste Daroussinis a synonym for
6261d06d6bSBaptiste Daroussin.Nm
6361d06d6bSBaptiste Daroussin.Fl f .
6461d06d6bSBaptiste Daroussin.Pp
6561d06d6bSBaptiste DaroussinThe options are as follows:
6661d06d6bSBaptiste Daroussin.Bl -tag -width Ds
6761d06d6bSBaptiste Daroussin.It Fl a
6861d06d6bSBaptiste DaroussinInstead of showing only the title lines, show the complete manual pages,
6961d06d6bSBaptiste Daroussinjust like
7061d06d6bSBaptiste Daroussin.Xr man 1
7161d06d6bSBaptiste Daroussin.Fl a
7261d06d6bSBaptiste Daroussinwould.
7361d06d6bSBaptiste DaroussinIf the standard output is a terminal device and
7461d06d6bSBaptiste Daroussin.Fl c
7561d06d6bSBaptiste Daroussinis not specified, use
7661d06d6bSBaptiste Daroussin.Xr more 1
7761d06d6bSBaptiste Daroussinto paginate them.
7861d06d6bSBaptiste DaroussinIn
7961d06d6bSBaptiste Daroussin.Fl a
8061d06d6bSBaptiste Daroussinmode, the options
8161d06d6bSBaptiste Daroussin.Fl IKOTW
8261d06d6bSBaptiste Daroussindescribed in the
8361d06d6bSBaptiste Daroussin.Xr mandoc 1
8461d06d6bSBaptiste Daroussinmanual are also available.
8561d06d6bSBaptiste Daroussin.It Fl C Ar file
8661d06d6bSBaptiste DaroussinSpecify an alternative configuration
8761d06d6bSBaptiste Daroussin.Ar file
8861d06d6bSBaptiste Daroussinin
8961d06d6bSBaptiste Daroussin.Xr man.conf 5
9061d06d6bSBaptiste Daroussinformat.
9161d06d6bSBaptiste Daroussin.It Fl f
9261d06d6bSBaptiste DaroussinSearch for all words in
9361d06d6bSBaptiste Daroussin.Ar expression
9461d06d6bSBaptiste Daroussinin manual page names only.
95*7295610fSBaptiste DaroussinThe search is case-insensitive and matches whole words only.
9661d06d6bSBaptiste DaroussinIn this mode, macro keys, comparison operators, and logical operators
9761d06d6bSBaptiste Daroussinare not available.
9861d06d6bSBaptiste Daroussin.It Fl k
9961d06d6bSBaptiste DaroussinSupport the full
10061d06d6bSBaptiste Daroussin.Ar expression
10161d06d6bSBaptiste Daroussinsyntax.
10261d06d6bSBaptiste DaroussinIt is the default for
10361d06d6bSBaptiste Daroussin.Nm .
10461d06d6bSBaptiste Daroussin.It Fl M Ar path
10561d06d6bSBaptiste DaroussinUse the colon-separated path instead of the default list of paths
10661d06d6bSBaptiste Daroussinsearched for
10761d06d6bSBaptiste Daroussin.Xr makewhatis 8
10861d06d6bSBaptiste Daroussindatabases.
10961d06d6bSBaptiste DaroussinInvalid paths, or paths without manual databases, are ignored.
11061d06d6bSBaptiste Daroussin.It Fl m Ar path
11161d06d6bSBaptiste DaroussinPrepend the colon-separated paths to the list of paths searched
11261d06d6bSBaptiste Daroussinfor
11361d06d6bSBaptiste Daroussin.Xr makewhatis 8
11461d06d6bSBaptiste Daroussindatabases.
11561d06d6bSBaptiste DaroussinInvalid paths, or paths without manual databases, are ignored.
11661d06d6bSBaptiste Daroussin.It Fl O Ar outkey
11761d06d6bSBaptiste DaroussinShow the values associated with the key
11861d06d6bSBaptiste Daroussin.Ar outkey
11961d06d6bSBaptiste Daroussininstead of the manual descriptions.
12061d06d6bSBaptiste Daroussin.It Fl S Ar arch
12161d06d6bSBaptiste DaroussinRestrict the search to pages for the specified
12261d06d6bSBaptiste Daroussin.Xr machine 1
12361d06d6bSBaptiste Daroussinarchitecture.
12461d06d6bSBaptiste Daroussin.Ar arch
125*7295610fSBaptiste Daroussinis case-insensitive.
12661d06d6bSBaptiste DaroussinBy default, pages for all architectures are shown.
12761d06d6bSBaptiste Daroussin.It Fl s Ar section
12861d06d6bSBaptiste DaroussinRestrict the search to the specified section of the manual.
12961d06d6bSBaptiste DaroussinBy default, pages from all sections are shown.
13061d06d6bSBaptiste DaroussinSee
13161d06d6bSBaptiste Daroussin.Xr man 1
13261d06d6bSBaptiste Daroussinfor a listing of sections.
13361d06d6bSBaptiste Daroussin.El
13461d06d6bSBaptiste Daroussin.Pp
13561d06d6bSBaptiste DaroussinThe options
13661d06d6bSBaptiste Daroussin.Fl chlw
13761d06d6bSBaptiste Daroussinare also supported and are documented in
13861d06d6bSBaptiste Daroussin.Xr man 1 .
13961d06d6bSBaptiste DaroussinThe options
14061d06d6bSBaptiste Daroussin.Fl fkl
14161d06d6bSBaptiste Daroussinare mutually exclusive and override each other.
14261d06d6bSBaptiste Daroussin.Pp
14361d06d6bSBaptiste DaroussinAn
14461d06d6bSBaptiste Daroussin.Ar expression
14561d06d6bSBaptiste Daroussinconsists of search terms joined by logical operators
14661d06d6bSBaptiste Daroussin.Fl a
14761d06d6bSBaptiste Daroussin.Pq and
14861d06d6bSBaptiste Daroussinand
14961d06d6bSBaptiste Daroussin.Fl o
15061d06d6bSBaptiste Daroussin.Pq or .
15161d06d6bSBaptiste DaroussinThe
15261d06d6bSBaptiste Daroussin.Fl a
15361d06d6bSBaptiste Daroussinoperator has precedence over
15461d06d6bSBaptiste Daroussin.Fl o
15561d06d6bSBaptiste Daroussinand both are evaluated left-to-right.
15661d06d6bSBaptiste Daroussin.Bl -tag -width Ds
15761d06d6bSBaptiste Daroussin.It \&( Ar expr No \&)
15861d06d6bSBaptiste DaroussinTrue if the subexpression
15961d06d6bSBaptiste Daroussin.Ar expr
16061d06d6bSBaptiste Daroussinis true.
16161d06d6bSBaptiste Daroussin.It Ar expr1 Fl a Ar expr2
16261d06d6bSBaptiste DaroussinTrue if both
16361d06d6bSBaptiste Daroussin.Ar expr1
16461d06d6bSBaptiste Daroussinand
16561d06d6bSBaptiste Daroussin.Ar expr2
16661d06d6bSBaptiste Daroussinare true (logical
16761d06d6bSBaptiste Daroussin.Sq and ) .
16861d06d6bSBaptiste Daroussin.It Ar expr1 Oo Fl o Oc Ar expr2
16961d06d6bSBaptiste DaroussinTrue if
17061d06d6bSBaptiste Daroussin.Ar expr1
17161d06d6bSBaptiste Daroussinand/or
17261d06d6bSBaptiste Daroussin.Ar expr2
17361d06d6bSBaptiste Daroussinevaluate to true (logical
17461d06d6bSBaptiste Daroussin.Sq or ) .
17561d06d6bSBaptiste Daroussin.It Ar term
17661d06d6bSBaptiste DaroussinTrue if
17761d06d6bSBaptiste Daroussin.Ar term
17861d06d6bSBaptiste Daroussinis satisfied.
17961d06d6bSBaptiste DaroussinThis has syntax
18061d06d6bSBaptiste Daroussin.Sm off
18161d06d6bSBaptiste Daroussin.Oo
18261d06d6bSBaptiste Daroussin.Op Ar key Op , Ar key ...
18361d06d6bSBaptiste Daroussin.Pq Cm = | \(ti
18461d06d6bSBaptiste Daroussin.Oc
18561d06d6bSBaptiste Daroussin.Ar val ,
18661d06d6bSBaptiste Daroussin.Sm on
18761d06d6bSBaptiste Daroussinwhere
18861d06d6bSBaptiste Daroussin.Ar key
18961d06d6bSBaptiste Daroussinis an
19061d06d6bSBaptiste Daroussin.Xr mdoc 7
19161d06d6bSBaptiste Daroussinmacro to query and
19261d06d6bSBaptiste Daroussin.Ar val
19361d06d6bSBaptiste Daroussinis its value.
19461d06d6bSBaptiste DaroussinSee
19561d06d6bSBaptiste Daroussin.Sx Macro Keys
19661d06d6bSBaptiste Daroussinfor a list of available keys.
19761d06d6bSBaptiste DaroussinOperator
19861d06d6bSBaptiste Daroussin.Cm =
19961d06d6bSBaptiste Daroussinevaluates a substring, while
20061d06d6bSBaptiste Daroussin.Cm \(ti
201*7295610fSBaptiste Daroussinevaluates a case-sensitive extended regular expression.
20261d06d6bSBaptiste Daroussin.It Fl i Ar term
20361d06d6bSBaptiste DaroussinIf
20461d06d6bSBaptiste Daroussin.Ar term
20561d06d6bSBaptiste Daroussinis a regular expression, it
20661d06d6bSBaptiste Daroussinis evaluated case-insensitively.
20761d06d6bSBaptiste DaroussinHas no effect on substring terms.
20861d06d6bSBaptiste Daroussin.El
20961d06d6bSBaptiste Daroussin.Pp
210*7295610fSBaptiste DaroussinResults are sorted first according to the section number in ascending
211*7295610fSBaptiste Daroussinnumerical order, then by the page name in ascending
21261d06d6bSBaptiste Daroussin.Xr ascii 7
21361d06d6bSBaptiste Daroussinalphabetical order, case-insensitive.
21461d06d6bSBaptiste Daroussin.Pp
21561d06d6bSBaptiste DaroussinEach output line is formatted as
21661d06d6bSBaptiste Daroussin.Pp
21761d06d6bSBaptiste Daroussin.D1 name[, name...](sec) \- description
21861d06d6bSBaptiste Daroussin.Pp
21961d06d6bSBaptiste DaroussinWhere
22061d06d6bSBaptiste Daroussin.Dq name
22161d06d6bSBaptiste Daroussinis the manual's name,
22261d06d6bSBaptiste Daroussin.Dq sec
22361d06d6bSBaptiste Daroussinis the manual section, and
22461d06d6bSBaptiste Daroussin.Dq description
22561d06d6bSBaptiste Daroussinis the manual's short description.
22661d06d6bSBaptiste DaroussinIf an architecture is specified for the manual, it is displayed as
22761d06d6bSBaptiste Daroussin.Pp
22861d06d6bSBaptiste Daroussin.D1 name(sec/arch) \- description
22961d06d6bSBaptiste Daroussin.Pp
23061d06d6bSBaptiste DaroussinResulting manuals may be accessed as
23161d06d6bSBaptiste Daroussin.Pp
23261d06d6bSBaptiste Daroussin.Dl $ man \-s sec name
23361d06d6bSBaptiste Daroussin.Pp
23461d06d6bSBaptiste DaroussinIf an architecture is specified in the output, use
23561d06d6bSBaptiste Daroussin.Pp
23661d06d6bSBaptiste Daroussin.Dl $ man \-s sec \-S arch name
23761d06d6bSBaptiste Daroussin.Ss Macro Keys
23861d06d6bSBaptiste DaroussinQueries evaluate over a subset of
23961d06d6bSBaptiste Daroussin.Xr mdoc 7
24061d06d6bSBaptiste Daroussinmacros indexed by
24161d06d6bSBaptiste Daroussin.Xr makewhatis 8 .
24261d06d6bSBaptiste DaroussinIn addition to the macro keys listed below, the special key
24361d06d6bSBaptiste Daroussin.Cm any
24461d06d6bSBaptiste Daroussinmay be used to match any available macro key.
24561d06d6bSBaptiste Daroussin.Pp
24661d06d6bSBaptiste DaroussinNames and description:
24761d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
24861d06d6bSBaptiste Daroussin.It Li \&Nm Ta manual name
24961d06d6bSBaptiste Daroussin.It Li \&Nd Ta one-line manual description
25061d06d6bSBaptiste Daroussin.It Li arch Ta machine architecture (case-insensitive)
25161d06d6bSBaptiste Daroussin.It Li sec  Ta manual section number
25261d06d6bSBaptiste Daroussin.El
25361d06d6bSBaptiste Daroussin.Pp
25461d06d6bSBaptiste DaroussinSections and cross references:
25561d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
25661d06d6bSBaptiste Daroussin.It Li \&Sh Ta section header (excluding standard sections)
25761d06d6bSBaptiste Daroussin.It Li \&Ss Ta subsection header
25861d06d6bSBaptiste Daroussin.It Li \&Xr Ta cross reference to another manual page
25961d06d6bSBaptiste Daroussin.It Li \&Rs Ta bibliographic reference
26061d06d6bSBaptiste Daroussin.El
26161d06d6bSBaptiste Daroussin.Pp
26261d06d6bSBaptiste DaroussinSemantic markup for command line utilities:
26361d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
26461d06d6bSBaptiste Daroussin.It Li \&Fl Ta command line options (flags)
26561d06d6bSBaptiste Daroussin.It Li \&Cm Ta command modifier
26661d06d6bSBaptiste Daroussin.It Li \&Ar Ta command argument
26761d06d6bSBaptiste Daroussin.It Li \&Ic Ta internal or interactive command
26861d06d6bSBaptiste Daroussin.It Li \&Ev Ta environmental variable
26961d06d6bSBaptiste Daroussin.It Li \&Pa Ta file system path
27061d06d6bSBaptiste Daroussin.El
27161d06d6bSBaptiste Daroussin.Pp
27261d06d6bSBaptiste DaroussinSemantic markup for function libraries:
27361d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
27461d06d6bSBaptiste Daroussin.It Li \&Lb Ta function library name
27561d06d6bSBaptiste Daroussin.It Li \&In Ta include file
27661d06d6bSBaptiste Daroussin.It Li \&Ft Ta function return type
27761d06d6bSBaptiste Daroussin.It Li \&Fn Ta function name
27861d06d6bSBaptiste Daroussin.It Li \&Fa Ta function argument type and name
27961d06d6bSBaptiste Daroussin.It Li \&Vt Ta variable type
28061d06d6bSBaptiste Daroussin.It Li \&Va Ta variable name
28161d06d6bSBaptiste Daroussin.It Li \&Dv Ta defined variable or preprocessor constant
28261d06d6bSBaptiste Daroussin.It Li \&Er Ta error constant
28361d06d6bSBaptiste Daroussin.It Li \&Ev Ta environmental variable
28461d06d6bSBaptiste Daroussin.El
28561d06d6bSBaptiste Daroussin.Pp
28661d06d6bSBaptiste DaroussinVarious semantic markup:
28761d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
28861d06d6bSBaptiste Daroussin.It Li \&An Ta author name
28961d06d6bSBaptiste Daroussin.It Li \&Lk Ta hyperlink
29061d06d6bSBaptiste Daroussin.It Li \&Mt Ta Do mailto Dc hyperlink
29161d06d6bSBaptiste Daroussin.It Li \&Cd Ta kernel configuration declaration
29261d06d6bSBaptiste Daroussin.It Li \&Ms Ta mathematical symbol
29361d06d6bSBaptiste Daroussin.It Li \&Tn Ta tradename
29461d06d6bSBaptiste Daroussin.El
29561d06d6bSBaptiste Daroussin.Pp
29661d06d6bSBaptiste DaroussinPhysical markup:
29761d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
29861d06d6bSBaptiste Daroussin.It Li \&Em Ta italic font or underline
29961d06d6bSBaptiste Daroussin.It Li \&Sy Ta boldface font
30061d06d6bSBaptiste Daroussin.It Li \&Li Ta typewriter font
30161d06d6bSBaptiste Daroussin.El
30261d06d6bSBaptiste Daroussin.Pp
30361d06d6bSBaptiste DaroussinText production:
30461d06d6bSBaptiste Daroussin.Bl -column "xLix" description -offset indent -compact
30561d06d6bSBaptiste Daroussin.It Li \&St Ta reference to a standards document
30661d06d6bSBaptiste Daroussin.It Li \&At Ta At No version reference
30761d06d6bSBaptiste Daroussin.It Li \&Bx Ta Bx No version reference
30861d06d6bSBaptiste Daroussin.It Li \&Bsx Ta Bsx No version reference
30961d06d6bSBaptiste Daroussin.It Li \&Nx Ta Nx No version reference
31061d06d6bSBaptiste Daroussin.It Li \&Fx Ta Fx No version reference
31161d06d6bSBaptiste Daroussin.It Li \&Ox Ta Ox No version reference
31261d06d6bSBaptiste Daroussin.It Li \&Dx Ta Dx No version reference
31361d06d6bSBaptiste Daroussin.El
31461d06d6bSBaptiste Daroussin.Pp
31561d06d6bSBaptiste DaroussinIn general, macro keys are supposed to yield complete results without
31661d06d6bSBaptiste Daroussinexpecting the user to consider actual macro usage.
31761d06d6bSBaptiste DaroussinFor example, results include:
31861d06d6bSBaptiste Daroussin.Pp
31961d06d6bSBaptiste Daroussin.Bl -tag -width 3n -offset 3n -compact
32061d06d6bSBaptiste Daroussin.It Li \&Fa
32161d06d6bSBaptiste Daroussinfunction arguments appearing on
32261d06d6bSBaptiste Daroussin.Ic \&Fn
32361d06d6bSBaptiste Daroussinlines
32461d06d6bSBaptiste Daroussin.It Li \&Fn
325*7295610fSBaptiste Daroussinfunction names marked up with
32661d06d6bSBaptiste Daroussin.Ic \&Fo
32761d06d6bSBaptiste Daroussinmacros
32861d06d6bSBaptiste Daroussin.It Li \&In
32961d06d6bSBaptiste Daroussininclude file names marked up with
33061d06d6bSBaptiste Daroussin.Ic \&Fd
33161d06d6bSBaptiste Daroussinmacros
33261d06d6bSBaptiste Daroussin.It Li \&Vt
33361d06d6bSBaptiste Daroussintypes appearing as function return types and
33461d06d6bSBaptiste Daroussin.It \&
33561d06d6bSBaptiste Daroussintypes appearing in function arguments in the SYNOPSIS
33661d06d6bSBaptiste Daroussin.El
33761d06d6bSBaptiste Daroussin.Sh ENVIRONMENT
33861d06d6bSBaptiste Daroussin.Bl -tag -width MANPAGER
33961d06d6bSBaptiste Daroussin.It Ev MANPAGER
34061d06d6bSBaptiste DaroussinAny non-empty value of the environment variable
34161d06d6bSBaptiste Daroussin.Ev MANPAGER
34261d06d6bSBaptiste Daroussinis used instead of the standard pagination program,
34361d06d6bSBaptiste Daroussin.Xr more 1 ;
34461d06d6bSBaptiste Daroussinsee
34561d06d6bSBaptiste Daroussin.Xr man 1
34661d06d6bSBaptiste Daroussinfor details.
34761d06d6bSBaptiste DaroussinOnly used if
34861d06d6bSBaptiste Daroussin.Fl a
34961d06d6bSBaptiste Daroussinor
35061d06d6bSBaptiste Daroussin.Fl l
35161d06d6bSBaptiste Daroussinis specified.
35261d06d6bSBaptiste Daroussin.It Ev MANPATH
35361d06d6bSBaptiste DaroussinA colon-separated list of directories to search for manual pages; see
35461d06d6bSBaptiste Daroussin.Xr man 1
35561d06d6bSBaptiste Daroussinfor details.
35661d06d6bSBaptiste DaroussinOverridden by
35761d06d6bSBaptiste Daroussin.Fl M ,
35861d06d6bSBaptiste Daroussinignored if
35961d06d6bSBaptiste Daroussin.Fl l
36061d06d6bSBaptiste Daroussinis specified.
36161d06d6bSBaptiste Daroussin.It Ev PAGER
36261d06d6bSBaptiste DaroussinSpecifies the pagination program to use when
36361d06d6bSBaptiste Daroussin.Ev MANPAGER
36461d06d6bSBaptiste Daroussinis not defined.
36561d06d6bSBaptiste DaroussinIf neither PAGER nor MANPAGER is defined,
36661d06d6bSBaptiste Daroussin.Xr more 1
36761d06d6bSBaptiste Daroussin.Fl s
36861d06d6bSBaptiste Daroussinis used.
36961d06d6bSBaptiste DaroussinOnly used if
37061d06d6bSBaptiste Daroussin.Fl a
37161d06d6bSBaptiste Daroussinor
37261d06d6bSBaptiste Daroussin.Fl l
37361d06d6bSBaptiste Daroussinis specified.
37461d06d6bSBaptiste Daroussin.El
37561d06d6bSBaptiste Daroussin.Sh FILES
37661d06d6bSBaptiste Daroussin.Bl -tag -width "/etc/man.conf" -compact
37761d06d6bSBaptiste Daroussin.It Pa mandoc.db
37861d06d6bSBaptiste Daroussinname of the
37961d06d6bSBaptiste Daroussin.Xr makewhatis 8
38061d06d6bSBaptiste Daroussinkeyword database
38161d06d6bSBaptiste Daroussin.It Pa /etc/man.conf
38261d06d6bSBaptiste Daroussindefault
38361d06d6bSBaptiste Daroussin.Xr man 1
38461d06d6bSBaptiste Daroussinconfiguration file
38561d06d6bSBaptiste Daroussin.El
38661d06d6bSBaptiste Daroussin.Sh EXIT STATUS
38761d06d6bSBaptiste Daroussin.Ex -std
38861d06d6bSBaptiste Daroussin.Sh EXAMPLES
38961d06d6bSBaptiste DaroussinSearch for
39061d06d6bSBaptiste Daroussin.Qq .cf
39161d06d6bSBaptiste Daroussinas a substring of manual names and descriptions:
39261d06d6bSBaptiste Daroussin.Pp
393*7295610fSBaptiste Daroussin.Dl $ apropos =.cf
39461d06d6bSBaptiste Daroussin.Pp
39561d06d6bSBaptiste DaroussinInclude matches for
39661d06d6bSBaptiste Daroussin.Qq .cnf
39761d06d6bSBaptiste Daroussinand
39861d06d6bSBaptiste Daroussin.Qq .conf
39961d06d6bSBaptiste Daroussinas well:
40061d06d6bSBaptiste Daroussin.Pp
401*7295610fSBaptiste Daroussin.Dl $ apropos =.cf =.cnf =.conf
40261d06d6bSBaptiste Daroussin.Pp
403*7295610fSBaptiste DaroussinSearch in names and descriptions using a case-sensitive regular expression:
40461d06d6bSBaptiste Daroussin.Pp
40561d06d6bSBaptiste Daroussin.Dl $ apropos \(aq\(tiset.?[ug]id\(aq
40661d06d6bSBaptiste Daroussin.Pp
40761d06d6bSBaptiste DaroussinSearch for manuals in the library section mentioning both the
40861d06d6bSBaptiste Daroussin.Qq optind
40961d06d6bSBaptiste Daroussinand the
41061d06d6bSBaptiste Daroussin.Qq optarg
41161d06d6bSBaptiste Daroussinvariables:
41261d06d6bSBaptiste Daroussin.Pp
41361d06d6bSBaptiste Daroussin.Dl $ apropos \-s 3 Va=optind \-a Va=optarg
41461d06d6bSBaptiste Daroussin.Pp
41561d06d6bSBaptiste DaroussinDo exactly the same as calling
41661d06d6bSBaptiste Daroussin.Nm whatis
41761d06d6bSBaptiste Daroussinwith the argument
41861d06d6bSBaptiste Daroussin.Qq ssh :
41961d06d6bSBaptiste Daroussin.Pp
42061d06d6bSBaptiste Daroussin.Dl $ apropos \-\- \-i \(aqNm\(ti[[:<:]]ssh[[:>:]]\(aq
42161d06d6bSBaptiste Daroussin.Pp
42261d06d6bSBaptiste DaroussinThe following two invocations are equivalent:
42361d06d6bSBaptiste Daroussin.Pp
42461d06d6bSBaptiste Daroussin.D1 Li $ apropos -S Ar arch Li -s Ar section expression
42561d06d6bSBaptiste Daroussin.Bd -ragged -offset indent
42661d06d6bSBaptiste Daroussin.Li $ apropos \e( Ar expression Li \e)
42761d06d6bSBaptiste Daroussin.Li -a arch\(ti^( Ns Ar arch Ns Li |any)$
42861d06d6bSBaptiste Daroussin.Li -a sec\(ti^ Ns Ar section Ns Li $
42961d06d6bSBaptiste Daroussin.Ed
43061d06d6bSBaptiste Daroussin.Sh SEE ALSO
43161d06d6bSBaptiste Daroussin.Xr man 1 ,
43261d06d6bSBaptiste Daroussin.Xr re_format 7 ,
43361d06d6bSBaptiste Daroussin.Xr makewhatis 8
434*7295610fSBaptiste Daroussin.Sh STANDARDS
435*7295610fSBaptiste DaroussinThe
436*7295610fSBaptiste Daroussin.Nm
437*7295610fSBaptiste Daroussinutility is compliant with the
438*7295610fSBaptiste Daroussin.St -p1003.1-2008
439*7295610fSBaptiste Daroussinspecification of
440*7295610fSBaptiste Daroussin.Xr man 1
441*7295610fSBaptiste Daroussin.Fl k .
442*7295610fSBaptiste Daroussin.Pp
443*7295610fSBaptiste DaroussinAll options, the
444*7295610fSBaptiste Daroussin.Nm whatis
445*7295610fSBaptiste Daroussincommand, support for logical operators, macro keys,
446*7295610fSBaptiste Daroussinsubstring matching, sorting of results, the environment variables
447*7295610fSBaptiste Daroussin.Ev MANPAGER
448*7295610fSBaptiste Daroussinand
449*7295610fSBaptiste Daroussin.Ev MANPATH ,
450*7295610fSBaptiste Daroussinthe database format, and the configuration file
451*7295610fSBaptiste Daroussinare extensions to that specification.
45261d06d6bSBaptiste Daroussin.Sh HISTORY
45361d06d6bSBaptiste DaroussinPart of the functionality of
45461d06d6bSBaptiste Daroussin.Nm whatis
45561d06d6bSBaptiste Daroussinwas already provided by the former
45661d06d6bSBaptiste Daroussin.Nm manwhere
45761d06d6bSBaptiste Daroussinutility in
45861d06d6bSBaptiste Daroussin.Bx 1 .
45961d06d6bSBaptiste DaroussinThe
46061d06d6bSBaptiste Daroussin.Nm
46161d06d6bSBaptiste Daroussinand
46261d06d6bSBaptiste Daroussin.Nm whatis
46361d06d6bSBaptiste Daroussinutilities first appeared in
46461d06d6bSBaptiste Daroussin.Bx 2 .
46561d06d6bSBaptiste DaroussinThey were rewritten from scratch for
46661d06d6bSBaptiste Daroussin.Ox 5.6 .
46761d06d6bSBaptiste Daroussin.Pp
46861d06d6bSBaptiste DaroussinThe
46961d06d6bSBaptiste Daroussin.Fl M
47061d06d6bSBaptiste Daroussinoption and the
47161d06d6bSBaptiste Daroussin.Ev MANPATH
47261d06d6bSBaptiste Daroussinvariable first appeared in
47361d06d6bSBaptiste Daroussin.Bx 4.3 ;
47461d06d6bSBaptiste Daroussin.Fl m
47561d06d6bSBaptiste Daroussinin
47661d06d6bSBaptiste Daroussin.Bx 4.3 Reno ;
47761d06d6bSBaptiste Daroussin.Fl C
47861d06d6bSBaptiste Daroussinin
47961d06d6bSBaptiste Daroussin.Bx 4.4 Lite1 ;
48061d06d6bSBaptiste Daroussinand
48161d06d6bSBaptiste Daroussin.Fl S
48261d06d6bSBaptiste Daroussinand
48361d06d6bSBaptiste Daroussin.Fl s
48461d06d6bSBaptiste Daroussinin
48561d06d6bSBaptiste Daroussin.Ox 4.5
48661d06d6bSBaptiste Daroussinfor
48761d06d6bSBaptiste Daroussin.Nm
48861d06d6bSBaptiste Daroussinand in
48961d06d6bSBaptiste Daroussin.Ox 5.6
49061d06d6bSBaptiste Daroussinfor
49161d06d6bSBaptiste Daroussin.Nm whatis .
49261d06d6bSBaptiste DaroussinThe options
49361d06d6bSBaptiste Daroussin.Fl acfhIKklOTWw
49461d06d6bSBaptiste Daroussinappeared in
49561d06d6bSBaptiste Daroussin.Ox 5.7 .
49661d06d6bSBaptiste Daroussin.Sh AUTHORS
49761d06d6bSBaptiste Daroussin.An -nosplit
49861d06d6bSBaptiste Daroussin.An Bill Joy
49961d06d6bSBaptiste Daroussinwrote
50061d06d6bSBaptiste Daroussin.Nm manwhere
50161d06d6bSBaptiste Daroussinin 1977 and the original
50261d06d6bSBaptiste Daroussin.Bx
50361d06d6bSBaptiste Daroussin.Nm
50461d06d6bSBaptiste Daroussinand
50561d06d6bSBaptiste Daroussin.Nm whatis
50661d06d6bSBaptiste Daroussinin February 1979.
50761d06d6bSBaptiste DaroussinThe current version was written by
50861d06d6bSBaptiste Daroussin.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv
50961d06d6bSBaptiste Daroussinand
51061d06d6bSBaptiste Daroussin.An Ingo Schwarze Aq Mt schwarze@openbsd.org .
511