man.conf -> manconf
[unix-history] / usr / src / usr.bin / man / man.conf.5
CommitLineData
882cb044
KS
1.\" Copyright (c) 1989 The Regents of the University of California.
2.\" All rights reserved.
3.\"
91cff1e1 4.\" %sccs.include.redist.man%
882cb044 5.\"
68c2fd2d 6.\" @(#)man.conf.5 5.6 (Berkeley) %G%
882cb044
KS
7.\"
8.TH MAN.CONF 5 ""
9.SH NAME
011519cd 10man.conf \- man command's configuration file
882cb044 11.SH DESCRIPTION
011519cd
KB
12.IR Man (1),
13.IR apropos (1),
14and
15.IR whatis (1)
16search for manual pages or their database files as specified by the
882cb044 17.I man.conf
011519cd
KB
18file.
19Manual pages are expected to be preformatted (see
20.IR nroff (1))
21and named with a trailing ``.0''.
22.PP
882cb044
KS
23The
24.I man.conf
011519cd
KB
25file contains two types of lines.
26.PP
27The first type of line is a ``section'' line, which contains a
28section name followed by a directory path.
29Lines in this format specify that manual pages for the section
30may be found in the directory.
011519cd
KB
31.PP
32Directories named with a trailing slash character (``/'') are expected
33to contain subdirectories (see the keyword ``_subdir'' below) instead
34of manual pages.
35These subdirectories are searched instead of the directory.
36.PP
37All directories (either explicitly specified or named with a trailing
38slash) may contain subdirectories.
39.IR Man (1)
40automatically searches any subdirectory with the same name as the
41current machine type before the directory is searched.
42No specification of these subdirectories is necessary in the
43.I man.conf
44file.
45.PP
46Section names are unrestricted except for the reserved words specified
47below; in general, however, it is best to avoid anything beginning with
48an underscore (``_'') in order to avoid future incompatibilities.
49.PP
50The section named ``_default'' is the list of directories to be
51searched if no section is specified.
882cb044 52.PP
011519cd
KB
53The second type of line is preceded with a ``keyword''.
54The possible keywords and their meanings are as follows:
55.sp
56.TP
57_subdir
58The list (in search order) of subdirectories which will be searched in
a201b3c4
TH
59any directory named with a trailing slash (``/'') character. This
60list is also used when a path is specified by the MANPATH environment
61variable or the -M option.
62.
011519cd
KB
63.TP
64_version
65The version of the configuration file.
66.TP
67_whatdb
68The full pathname (not just a directory path) for a database to be used
69by the
70.IR apropos (1)
71and
72.IR whatis (1)
73commands.
74.PP
1e76b432
KB
75Multiple specifications for all types of lines (except for ``_version'')
76are cumulative and the entries are used in the order listed in the file;
77multiple entries may be listed per line, as well.
78.PP
011519cd
KB
79Empty lines or lines whose first non-whitespace character is a hash
80mark (``#'') are ignored.
81.SH EXAMPLES
82Given the following
83.I man.conf file:
84.sp
85.nf
86.RS
87_version BSD.1
88_subdir cat1 cat2 cat3
89_default /usr/share/man/
90sect3 /usr/share/man/cat3
91.fi
92.RE
93.sp
94The default
882cb044 95.IR mktemp (3)
011519cd
KB
96manual page should be stored in ``/usr/share/man/cat3/mktemp.0''.
97Any VAX architecture specific version of it should be stored in
98``cat3/vax/mktemp.0''.
99.PP
100The command ``man mktemp'' would search the subdirectories ``cat1''
101``cat2'', and ``cat3'', in ``/usr/share/man'', in that order, for
102``mktemp.0''.
103If a subdirectory with the same name as the current machine type
104existed in any of them, it would be searched as well.
105.PP
106The command ``man sect3 mktemp'' would only search ``/usr/share/man/cat3''
107and any possible per machine subdirectory.
882cb044
KS
108.SH FILES
109/etc/man.conf standard manual directory search path
110.SH "SEE ALSO"
011519cd 111apropos(1), machine(1), man(1), whatis(1), whereis(1)