MANPATH(1)
๐ MANPATH โ the manual pager utils glow-up ๐
okay bestie, so this is the manpath(1) page from the Manual pager utils squad, and it's literally the tool that tells you where your manual pages live. let's get into it ๐ฆ
โจ NAME โจ
manpath โ determine search path for manual pages
๐ธ SYNOPSIS ๐ธ
manpath [-qgdc?V] [-m system[,...]] [-C file]
๐ DESCRIPTION ๐
okay so here's the tea. if $MANPATH is set, manpath will simply display its contents and issue a warning. that's it. that's the whole move. no thoughts, head empty, just showing you what you already set. ๐
but if $MANPATH is not set? then manpath will determine a suitable manual page hierarchy search path and display the results. main character energy fr fr. ๐
the colon-delimited path is determined using information gained from the man-db configuration file โ (/etc/man_db.conf) โ and the user's environment. both of those things, together, bestie. the config file AND the env. no cap. ๐
โจ OPTIONS โจ
-q,--quietโ do not issue warnings. shhh. ๐คซ-d,--debugโ print debugging information. for when you need to see the receipts. ๐-c,--catpathโ produce a catpath as opposed to a manpath. once the manpath is determined, each path element is converted to its relative catpath. it's giving transformation sequence โจ-g,--globalโ produce a manpath consisting of all paths named as "global" within the man-db configuration file. the globals, the whole globals, and nothing but the globals ๐-msystem[,...],--systems=system[,...]โ if this system has access to other operating systems' manual hierarchies, this option can be used to include them in the output ofmanpath. to include NewOS's manual page hierarchies use the option-m NewOS.
the system specified can be a combination of comma delimited operating system names. to include the native operating system's manual page hierarchies, the system name man must be included in the argument string. this option will override the $SYSTEM environment variable. override! it said override! ๐ญ
-Cfile,--config-file=file โ use this user configuration file rather than the default of~/.manpath. pick your own file, be your own person ๐ซถ-?,--helpโ print a help message and exit. help is always there for you ๐--usageโ print a short usage message and exit. the short version. the tl;dr. โจ-V,--versionโ display version information. โจ
๐ผ ENVIRONMENT ๐ผ
MANPATHโ if$MANPATHis set,manpathdisplays its value rather than determining it on the fly.
see the SEARCH PATH section of manpath(5) for the default behaviour and details of how this environment variable is handled. go read manpath(5), bestie, it's right there and it knows things ๐
SYSTEMโ if$SYSTEMis set, it will have the same effect as if it had been specified as the argument to the-moption. sneaky little shortcut, iykyk ๐
๐ฆ FILES ๐ฆ
/etc/man_db.confโ man-db configuration file. the sacred text ๐
๐ SEE ALSO ๐
the whole friend group. go say hi. ๐ซถ
๐ AUTHOR ๐
- Wilf. (
G.Wilford@ee.surrey.ac.uk). - Fabrizio Polacco (
fpolacco@debian.org). - Colin Watson (
cjwatson@debian.org).
absolute icons, all three of them ๐โจ
๐ BUGS ๐
found a bug? not me being the one to tell you โ go tell them, fr fr ๐ญ
and that's the whole page bestie!! this was version2.13.1, dated2025-05-02, brought to you by the man-db girlies. slay, stay hydrated, and read your man pages ๐ ๐๐ธ
๐ฆ 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
- fedora 43: man-db 2.13.1-2.fc43 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: man-db 2.13.1-3.fc44 ยท GPL-2.0-or-later AND GPL-3.0-or-later
- Copyright (C) 1995, Graeme W. Wilford. (Wilf.)
- Copyright (C) 2001-2019 Colin Watson
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms