📄 man.conf.5
字号:
.\" Copyright (c) 1989, 1991, 1993.\" The Regents of the University of California. All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\" must display the following acknowledgement:.\" This product includes software developed by the University of.\" California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\" may be used to endorse or promote products derived from this software.\" without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" @(#)man.conf.5 8.5 (Berkeley) 1/2/94.\".Dd January 2, 1994.Dt MAN.CONF 5.Os.Sh NAME.Nm man.conf.Nd configuration file for.Xr man 1.Sh DESCRIPTIONThe.Xr man 1 ,.Xr apropos 1 ,and.Xr whatis 1commandssearch for manual pages or their database files as specified by the.Nm man.conffile.Manual pages are normally expected to be preformatted (see.Xr nroff 1 )and named with a trailing ``.0''..PpThe.Nm man.conffile contains two types of lines..PpThe first type of line is a ``section'' line, which contains asection name followed by one or more directory paths.The directory paths may contain the normal shell globbing characters,including curly braces (``{}''); to escape a shell globbing character,precede it with a backslash (``\e'').Lines in this format specify that manual pages for the sectionmay be found in the following directories..PpDirectories named with a trailing slash character (``/'') are expectedto contain subdirectories of manual pages, (see the keyword ``_subdir''below) instead of manual pages.These subdirectories are searched instead of the directory..PpBefore searching any directory for a manual page, the.Xr man 1command always searches the subdirectory with the same nameas the current machine type, if it exists.No specification of these subdirectories is necessary in the.Nm man.conffile..PpSection names are unrestricted except for the reserved words specifiedbelow; in general, you should avoid anything with a leading underscore(``_'') to avoid future incompatibilities..PpThe section named ``_default'' is the list of directories that willbe searched if no section is specified by the user..PpThe second type of line is preceded with a ``keyword''.The possible keywords and their meanings are as follows:.Pp.Bl -tag -width "_version".It _buildMan file names, regardless of their format, are expected to end ina ``.*'' pattern, i.e. a ``.'' followed by some suffix.The first field of a _build line lists a suffix which indicatesfiles which need to be reformated or manipulated in some way beforebeing displayed to the user.The suffix may contain the normal shell globbing characters (NOTincluding curly braces (``{}'')).The rest of the line must be a shell command line, the standardoutput of which is the manual page in a format which may be directlydisplayed to the user.Any occurrences of the string ``%s'' in the shell command line willbe replaced by the name of the file which is being reformatted..It _subdirThe list (in search order) of subdirectories which will be searched inany directory named with a trailing slash (``/'') character.This list is also used when a path is specified to the.Xr man 1utility by the user, using the.Ev MANPATHenvironment variable or the.Fl Mand.Fl moptions..It _suffixMan file names, regardless of their format are expected to end ina ``.*'' pattern, i.e. a ``.'' followed by some suffix.Each field of a _suffix line is a suffix which indicatesfiles which do not need to be reformatted or manipulatedin any way, but which may be directly displayed to the user.Each suffix may contain the normal shell globbing characters (NOTincluding curly braces (``{}''))..It _versionThe version of the configuration file..It _whatdbThe full pathname (not just a directory path) for a database to be usedby the.Xr apropos 1and.Xr whatis 1commands..El.PpMultiple specifications for all types of lines are cumulative and theentries are used in the order listed in the file; multiple entries maybe listed per line, as well..PpEmpty lines or lines whose first non-whitespace character is a hashmark (``#'') are ignored..Sh EXAMPLESGiven the following.Nm man.conffile:.Bd -literal -offset indent_version BSD.2_subdir cat[123]_suffix .0_build .[1-9] nroff -man %s_build .tbl tbl %s | nroff -man_default /usr/share/man/sect3 /usr/share/man/{old/,}cat3.Ed.PpBy default, the command.Dq Li man mktempwill search for``mktemp.<any_digit>'' and ``mktemp.tbl''in the directories.Dq Pa /usr/share/man/cat1 , .Dq Pa /usr/share/man/cat2 , and.Dq Pa /usr/share/man/cat3 .If on a machine of type ``vax'', the subdirectory ``vax'' in eachdirectory would be searched as well, before the directory wassearched..PpIf ``mktemp.tbl'' was found first, the command.Dq Li tbl <manual page> | nroff -manwould be run to build a man page for display to the user..PpThe command.Dq Li man sect3 mktempwould search the directories.Dq Pa /usr/share/man/old/cat3and.Dq Pa /usr/share/man/cat3 ,in that order, forthe mktemp manual page.If a subdirectory with the same name as the current machine typeexisted in any of them, it would be searched as well, before eachof them were searched..Sh FILES.Bl -tag -width /etc/man.conf -compact.It Pa /etc/man.confStandard manual directory search path..El.Sh SEE ALSO.Xr apropos 1 ,.Xr machine 1 ,.Xr man 1 ,.Xr whatis 1 ,.Xr whereis 1 ,.Xr fnmatch 3 ,.Xr glob 3
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -