WHATIS(1)
Okay bestie, this is the Manual pager utils page for whatis π I read the whole thing so you don't have to π«Ά
β¨ NAME β¨
whatis β display one-line manual page descriptions π
β¨ SYNOPSIS β¨
whatis [-dlv?V] [-r|-w] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] name ...
β¨ DESCRIPTION β¨
Every manual page has a short description hiding inside it π whatis searches the manual page names and shows you the descriptions of whatever names it matches. Main character energy π
name can have wildcards (-w) or be a regular expression (-r) π¦ When you use those options, you might need to quote the name or escape (\) the special characters so the shell doesn't try to interpret them first π
Index databases get used during the search, and they're kept up to date by the mandb program π Depending on your setup, that might run from a periodic cron job, or you might have to run it yourself after installing new manual pages. To make an old style text whatis database from the relative index database, run this:
whatis -M manpath -w '*' | sort > manpath/whatis
where manpath is a manual page hierarchy such as /usr/man πΈ
β¨ OPTIONS β¨
-d,--debugβ Prints debugging info π-v,--verboseβ Prints verbose warning messages β οΈ-r,--regexβ Treats each name as a regular expression. If a name matches any part of a page name, that counts as a match π¦ Heads up: this makeswhatissomewhat slower because of how database searches work.-w,--wildcardβ Treats each name as a pattern with shell style wildcards. For a match, the expanded name has to match the entire page name π This also makeswhatissomewhat slower.-l,--longβ Doesn't trim the output to your terminal width. Normally it gets cut to fit so poorly written NAME sections don't look messy π-s list,--sections=list,--section=listβ Only searches the sections you pick β¨listis a colon- or comma-separated list. A simple section like3also brings up pages in3perl,3x, and so on. But if an entry has an extension, like3perl, only pages in that exact part of the section show up π§-m system[,...],--systems=system[,...]β If your system can reach other operating systems' manual page names, you can search them with this π To search NewOS's names, use-m NewOS. The system can be a comma-delimited combo of OS names. To include your native OS's names, addmanto the list. This option overrides the$SYSTEMenvironment variable.-M path,--manpath=pathβ Picks a different set of colon-delimited manual page hierarchies to search πΊοΈ By defaultwhatisuses$MANPATH, unless it's empty or unset. In that case it works out a manpath from your$PATHenvironment variable. This option overrides the contents of$MANPATH.-L locale,--locale=localeβ Normallywhatisfigures out your locale by calling the C functionsetlocale(3), which checks various environment variables, possibly including$LC_MESSAGESand$LANGπ To override that temporarily, pass a locale string straight in with this option. It won't kick in until the search actually begins. Stuff like the help message always shows in the locale that was figured out at the start.-C file,--config-file=fileβ Uses this user config file instead of the default~/.manpathπ-?,--helpβ Prints a help message and exits π--usageβ Prints a short usage message and exits π-V,--versionβ Shows version info π
β¨ EXIT STATUS β¨
0β Program ran successfully β1β Usage, syntax or configuration file error π2β Operational error π16β Nothing was found that matched your criteria π
β¨ ENVIRONMENT β¨
SYSTEMβ If$SYSTEMis set, it works exactly like passing it to the-moption π«ΆMANPATHβ If$MANPATHis set, its value is read as the colon-delimited manual page hierarchy search path to use. Check the SEARCH PATH section ofmanpath(5)for the default behaviour and the details of how this variable is handled ποΈMANWIDTHβ If$MANWIDTHis set, its value is used as the terminal width (see--long) π If it isn't set, the width is calculated from$COLUMNS, andioctl(2)if it's available, or it falls back to 80 characters if all else fails.
β¨ FILES β¨
/usr/share/man/index.(bt|db|dir|pag)β A traditional global index database cache ποΈ/var/cache/man/index.(bt|db|dir|pag)β An FHS compliant global index database cache ποΈ/usr/share/man/.../whatisβ A traditional whatis text database π
β¨ SEE ALSO β¨
apropos(1), man(1), mandb(8) π
β¨ AUTHOR β¨
- Wilf. (G.Wilford@ee.surrey.ac.uk). π«Ά
- Fabrizio Polacco (fpolacco@debian.org). π«Ά
- Colin Watson (cjwatson@debian.org). π«Ά
β¨ BUGS β¨
Found a bug? Report it at these spots π
And that's the whole tea β whatis version 2.13.1, dated 2025-05-02, and we're literally done π
β¨ Love you, bestie πΈπ¦
π¦ where this page comes from
- alpine 3.24: man-db-doc 2.13.1-r1 Β· GPL-2.0-or-later
- arch rolling: man-db 2.13.1-2 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- debian trixie: man-db 2.13.1-1 Β· GPL-2.0-or-later
- nixos 26.05: man-db 2.13.1
- nixpkgs unstable: man-db 2.13.1
- ubuntu questing: man-db 2.13.1-1 Β· GPL-2.0-or-later
- ubuntu resolute: man-db 2.13.1-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: man-db 2.13.1-1build1 Β· GPL-2.0-or-later
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms