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 ๐Ÿ’…
  • -m system[,...], --systems=system[,...] โ€” if this system has access to other operating systems' manual hierarchies, this option can be used to include them in the output of manpath. 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! ๐Ÿ˜ญ

  • -C file, --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 $MANPATH is set, manpath displays 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 $SYSTEM is set, it will have the same effect as if it had been specified as the argument to the -m option. sneaky little shortcut, iykyk ๐Ÿ‘‘

๐Ÿฆ‹ FILES ๐Ÿฆ‹

  • /etc/man_db.conf โ€” man-db configuration file. the sacred text ๐ŸŽ€

๐Ÿ’œ SEE ALSO ๐Ÿ’œ

apropos(1), man(1), whatis(1)

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 version 2.13.1, dated 2025-05-02, brought to you by the man-db girlies. slay, stay hydrated, and read your man pages ๐Ÿ’…๐Ÿ’–๐ŸŒธ
๐Ÿ“ฆ where this page comes from