stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / apropos / apropos.1
CommitLineData
b5dc1377 1.\" Copyright (c) 1989, 1990 The Regents of the University of California.
2f28d62a 2.\" All rights reserved.
3d55d843 3.\"
b5dc1377 4.\" %sccs.include.redist.man%
2f28d62a 5.\"
5325ced3 6.\" @(#)apropos.1 6.9 (Berkeley) %G%
d5781aef 7.\"
b5dc1377
CL
8.Dd
9.Dt APROPOS 1
10.Sh NAME
11.Nm apropos
12.Nd locate commands by keyword lookup
13.Sh SYNOPSIS
14.Nm apropos
15.Op Fl M Ar path
16.Op Fl m Ar path
17.Ar keyword ...
18.Sh DESCRIPTION
19.Nm Apropos
2f28d62a 20shows which manual pages contain instances of any of the given
b5dc1377 21.Ar keyword(s)
2f28d62a
KB
22in their title line.
23Each word is considered separately and case of letters is ignored.
24Words which are part of other words are considered; when looking for
b5dc1377
CL
25\*(Lqcompile\*(Rq,
26.Nm apropos
27will also list all instances of \*(Lqcompiler\*(Rq.
28.Pp
2f28d62a 29If the line output by
b5dc1377
CL
30.Nm apropos
31starts
32.Li \*(Lqname(section) ...\*(Rq
33you can enter
34.Li \*(Lqman section name\*(Rq
35to get
2f28d62a 36its documentation.
b5dc1377 37.Pp
2f28d62a 38The options are as follows:
b5dc1377 39.Tp Fl M
2f28d62a 40Override the list of standard directories where
b5dc1377
CL
41.Nm apropos
42searches for a database named
43.Pa whatis.db .
2f28d62a 44The supplied
b5dc1377
CL
45.Ar path
46must be a colon (\*(Lq:\*(Rq) separated list of directories.
5325ced3 47This search path may also be set using the environment variable
b5dc1377
CL
48.Ev MANPATH .
49.Tp Fl m
2f28d62a 50Augment the list of standard directories where
b5dc1377
CL
51.Nm apropos
52searches for its database.
2f28d62a 53The supplied
b5dc1377
CL
54.Ar path
55must be a colon (\*(Lq:\*(Rq) separated list of directories.
2f28d62a
KB
56These directories will be searched before the standard directories
57or the directories supplied with the
b5dc1377 58.Fl M
2f28d62a 59option or the
b5dc1377 60.Ev MANPATH
2f28d62a 61environmental variable are searched.
b5dc1377
CL
62.Sh ENVIRONMENT
63.Tw MANPATH
64.Tp Ev MANPATH
2f28d62a 65The standard search path used by
b5dc1377 66.Xr man 1
2f28d62a 67may be overridden by specifying a path in the
b5dc1377 68.Ev MANPATH
2f28d62a 69environmental variable.
b5dc1377
CL
70The format of the path is a colon (\*(Lq:\*(Rq) separated list of directories.
71.Tp
72.Sh FILES
5325ced3
CL
73.Dw whatis.db
74.Di L
75.Dp Pa whatis.db
b5dc1377 76name of the apropos database
5325ced3 77.Dp
b5dc1377
CL
78.Sh SEE ALSO
79.Xr man 1 ,
80.Xr whatis 1 ,
81.Xr whereis 1
82.Sh HISTORY
83.Nm apropos
84appeared in 3 BSD.