date and time created 90/06/28 18:04:27 by mckusick
[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.\"
91cff1e1 6.\" @(#)man.conf.5 5.4 (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
59any directory named with a trailing slash (``/'') character.
60.TP
61_version
62The version of the configuration file.
63.TP
64_whatdb
65The full pathname (not just a directory path) for a database to be used
66by the
67.IR apropos (1)
68and
69.IR whatis (1)
70commands.
71.PP
1e76b432
KB
72Multiple specifications for all types of lines (except for ``_version'')
73are cumulative and the entries are used in the order listed in the file;
74multiple entries may be listed per line, as well.
75.PP
011519cd
KB
76Empty lines or lines whose first non-whitespace character is a hash
77mark (``#'') are ignored.
78.SH EXAMPLES
79Given the following
80.I man.conf file:
81.sp
82.nf
83.RS
84_version BSD.1
85_subdir cat1 cat2 cat3
86_default /usr/share/man/
87sect3 /usr/share/man/cat3
88.fi
89.RE
90.sp
91The default
882cb044 92.IR mktemp (3)
011519cd
KB
93manual page should be stored in ``/usr/share/man/cat3/mktemp.0''.
94Any VAX architecture specific version of it should be stored in
95``cat3/vax/mktemp.0''.
96.PP
97The command ``man mktemp'' would search the subdirectories ``cat1''
98``cat2'', and ``cat3'', in ``/usr/share/man'', in that order, for
99``mktemp.0''.
100If a subdirectory with the same name as the current machine type
101existed in any of them, it would be searched as well.
102.PP
103The command ``man sect3 mktemp'' would only search ``/usr/share/man/cat3''
104and any possible per machine subdirectory.
882cb044
KS
105.SH FILES
106/etc/man.conf standard manual directory search path
107.SH "SEE ALSO"
011519cd 108apropos(1), machine(1), man(1), whatis(1), whereis(1)