MAKEWHATIS(8)
π MAKEWHATIS π β the makewhatis(8) page, but make it a group chat
okay so bestie, welcome to makewhatis(8) β a System Manager's Manual situation. Yes it's section 8, yes it's giving sysadmin, and yes you're gonna love it. π
β¨ NAME β¨
makewhatis β index UNIX manuals. that's it, that's the whole job description, and she does it flawlessly. π
πΈ SYNOPSIS πΈ
makewhatis [-aDnpQ] [-T utf8] [-C file]
makewhatis [-aDnpQ] [-T utf8] dir ...
makewhatis [-DnpQ] [-T utf8] -d dir [file ...]
makewhatis [-Dnp] [-T utf8] -u dir [file ...]
makewhatis [-DQ] -t file ...
look at all those little flags, so many options, she's booked and busy. β¨
π¦ DESCRIPTION π¦
So the makewhatis utility pulls keywords out of Unix manuals and indexes them into a database so they can be found fast later by apropos(1), whatis(1), and man(1)'s -k option. it's the backstage crew for your manpages, fr fr. π₯
By default, makewhatis creates a database in each dir using the files mansection/[arch/]title.section and catsection/[arch/]title.0 in that directory. Existing databases get replaced β out with the old, in with the new, no cap. If a directory has no manual pages in it, no database is created in that directory at all. and if dir isn't provided, makewhatis just uses the default paths stipulated by man.conf(5). she knows where to go. π
The arguments are as follows:
-aβ use all directories and files found belowdir .... go big or go home.-Cfile β specify an alternative configuration file inman.conf(5)format. pick your own adventure.-Dβ display all files added or removed to the index. and with a second-D, it also shows all keywords added for each file. double the D, double the tea. π«-ddir β merge (remove and re-add)file ...to the database in dir.-nβ do not create or modify any database; scan and parse only, and print manual page names and descriptions to standard output. look but don't touch energy. π-pβ print warnings about potential problems with manual pages to the standard error output. she's a little nosy, lovingly.-Qβ quickly build reduced-size databases by reading only theNAMEsections of manuals. the resulting databases will usually contain names and descriptions only. speed run, slay.-T utf8β use UTF-8 encoding instead of ASCII for strings stored in the databases. fancy characters, we love to see it. β¨-tfile ... β check the given files for potential problems. this implies-a,-n, and-p. All diagnostic messages are printed to the standard output; the standard error output is not used. so if you're looking for errors in stderr, they're not there, they're in stdout, okay?? π-udir β removefile ...from the database in dir. and if that makes the database become empty, it also deletes the database file. she leaves no crumbs. π
if fatal parse errors are encountered while parsing, the offending file is printed to stderr, omitted from the index, and the parse continues with the next input file. she does not stop the whole party for one bad guest. periodt.
π ENVIRONMENT π
MANPATHβ a colon-separated list of directories to create databases in. Ignored if a dir argument or the-toption is specified. she's got her own plans, sorry bestie. π
π FILES π
mandoc.dbβ a database of manpages relative to the directory of the file. This file is portable across architectures and systems, so long as the manpage hierarchy it indexes does not change. take her anywhere, she'll behave. π/etc/man.confβ the defaultman(1)configuration file.
β EXIT STATUS β
The makewhatis utility exits with one of the following values:
0β no errors occurred. we love a clean run, iconic. πΈ5β invalid command line arguments were specified. No input files have been read. rude of you, honestly. π6β an operating system error occurred, for example memory exhaustion or an error accessing input files. Such errors causemakewhatisto exit at once, possibly in the middle of parsing or formatting a file.
β οΈ the output databases are corrupt and should be removed. like, actually, throw them out, do not pass go. π
π SEE ALSO π
apropos(1), man(1), whatis(1), man.conf(5)
the whole squad, the friend group, the icons. π«Ά
π HISTORY π
A makewhatis utility first appeared in 2BSD. It was rewritten in perl(1) for OpenBSD 2.7 and in C for OpenBSD 5.6. glow-up after glow-up after glow-up, truly. β¨
The dir argument first appeared in NetBSD 1.0; the options -dpt in OpenBSD 2.7; the option -u in OpenBSD 3.4; and the options -aCDnQT in OpenBSD 5.6. we've been collecting flags like friendship bracelets. π
π AUTHORS π
Bill Joy wrote the original BSD makewhatis in February 1979, Marc Espie started the Perl version in 2000, and the current version of makewhatis was written by Kristaps Dzonsons <kristaps@bsd.lv> and Ingo Schwarze <schwarze@openbsd.org>.
legends, all of them, no notes. π
okay that's the whole page bestie!! this one's from the Debian crew, dated May 17, 2017, and it's the MAKEWHATIS(8) manual β go forth and index your manuals, you absolute main character. mwah π
β¨
π¦ 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) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
- Copyright (c) 2011, 2012, 2014, 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