MAN.CONF(5)
π MAN.CONF(5) π
okay bestie, welcome to the file formats manual section, we're doing man.conf today and honestly? it's giving lowkey iconic config energy π
β¨ NAME β¨
man.conf β the configuration file for man πΈ
π DESCRIPTION π
So. This is the configuration file for the man(1), apropos(1), and makewhatis(8) utilities. And here's the tea: its presence, AND all of its directives, are completely optional. She doesn't have to show up. If she doesn't, everything still works. Main character behaviour tbh π
This file is an ASCII text file. Leading whitespace on lines, lines starting with #, and blank lines are all ignored β like, they simply do not exist to her. Words are separated by whitespace. And the first word on each line is the name of a configuration directive. Periodt.
The following directives are supported, bestie, let's go one by one π«Ά
manpath path
Override the default search path for man(1), apropos(1), and makewhatis(8). You can use it multiple times to specify multiple paths, and the order you list them in determines the manual page search order. So like, first one wins. Ranking matters π
Each path is a tree containing subdirectories whose names consist of the strings man and/or cat followed by the names of sections, usually single digits. The man ones are supposed to contain unformatted manual pages in mdoc(7) and/or man(7) format, and their file names should end with the name of the section preceded by a dot. The cat ones should contain preformatted manual pages, and their file names should end with .0.
Creating amandoc.db(5)database withmakewhatis(8)in each directory configured withmanpathis recommended, and it's necessary forapropos(1)to work β and also forman(1)on operating systems like OpenBSD that install each manual page with only one file name in the file system, even if it documents multiple utilities or functions. So yeah, run yourmakewhatis, bestie, don't skip leg day π
output option [value]
Configure the default value of an output option. These directives get overridden by the -O command line options of the same names β so command line always wins, no cap. For details, see the mandoc(1) manual.
The options are:
fragmentβ value:none, used by-Thtml, purpose: print only bodyincludesβ value: string, used by-Thtml, purpose: path to header filesindentβ value: integer, used by-Tascii,utf8, purpose: left marginmanβ value: string, used by-Thtml, purpose: path forXrlinkspaperβ value: string, used by-Tps,pdf, purpose: paper sizestyleβ value: string, used by-Thtml, purpose: CSS filetocβ value:none, used by-Thtml, purpose: print table of contentswidthβ value: integer, used by-Tascii,utf8, purpose: right margin
π FILES π
/etc/man.conf
π¦ EXAMPLES π¦
okay this part is so satisfying. The following configuration file reproduces the defaults β meaning installing it is literally equivalent to not having a man.conf file at all. Same vibe, zero difference, it's giving "I did nothing and it worked" π
manpath /usr/share/man
manpath /usr/X11R6/man
manpath /usr/local/man
β SEE ALSO β
apropos(1), man(1), makewhatis(8)
go read them, they're all in the group chat πβ¨
πΈ HISTORY πΈ
A relatively complicated man.conf file format first appeared in 4.3BSD-Reno. Then, for OpenBSD 5.8, it was redesigned from scratch, aiming for simplicity. A glow-up, honestly. She reinvented herself π
β¨
π AUTHORS π
Ingo Schwarze <schwarze@openbsd.org> β thank you for your service, king π«‘
and that's the whole page bestie!! π this one's from the Debian fam, dated February 10, 2020 β mwah, love that for us πβ¨π¦
π¦ where this page comes from
- epel 10: mandoc 1.14.6-11.el10_1 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- epel 9: mandoc 1.14.6-2.el9 Β· ISC
- fedora 43: mandoc 1.14.6-12.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- fedora 44: mandoc 1.14.6-13.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause
- Copyright (c) 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms