CATMAN(8)

๐ŸŽ€ catman ๐ŸŽ€

Manual pager utils ๐Ÿ’… okay bestie, this is the tool that makes your man pages load super fast โœจ

โœจ NAME โœจ

catman โ€” create or update the pre-formatted manual pages ๐ŸŒธ

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

catman [-d?V] [-M path] [-C file] [section] ...

๐Ÿ’– DESCRIPTION ๐Ÿ’–

okay so catman makes a fresh, up-to-date set of pre-formatted manual pages, aka cat pages ๐Ÿ“š Cat pages are usually way quicker to display than the original manual pages, but they eat up extra storage space, so it's giving trade-off ๐Ÿ“ Whether you want them at all is up to the local administrator, who has to set up the directories that hold them ๐Ÿซถ

The options catman works with are the manual page hierarchies and the sections you want pre-formatted ๐Ÿงš By default, the hierarchies are whatever's listed as system hierarchies in the man-db configuration file. The default sections come from the colon-delimited contents of the $MANSECT environment variable, or the standard set built into man if $MANSECT isn't set at all ๐Ÿ’œ If you pass in a whitespace-delimited list of section names, that overrides both of those defaults, no cap ๐Ÿ‘‘

Also, catman uses the index database cache that goes with each hierarchy to figure out which files actually need formatting ๐Ÿ”ฅ very efficient, very iconic โœจ

๐ŸŒˆ OPTIONS ๐ŸŒˆ

  • -d, --debug โ€” prints debugging info ๐Ÿ™ˆ
  • -M path, --manpath=path โ€” lets you pick your own colon-delimited manual page hierarchy search path ๐Ÿ—บ๏ธ By default, this is every path marked as a system hierarchy in the man-db configuration file
  • -C file, --config-file=file โ€” uses this user configuration file instead of the default, which is ~/.manpath ๐Ÿ’…
  • -?, --help โ€” prints a help message and exits ๐ŸŽ€
  • --usage โ€” prints a short usage message and exits ๐Ÿฆ‹
  • -V, --version โ€” shows the version info โญ

๐Ÿงš ENVIRONMENT ๐Ÿงš

  • MANSECT โ€” if this is set, its value is a colon-delimited list of sections, and it decides which manual sections get searched and in what order ๐ŸŒธ The default is "1 n l 8 3 0 2 3type 3posix 3pm 3perl 3am 5 4 9 6 7", unless the SECTION directive in /etc/manpath.config overrides it ๐Ÿซถ
  • MANPATH โ€” if this is set, its value is read as the colon-delimited manual page hierarchy search path to use ๐Ÿ’– For the default behaviour and the full scoop on how this variable is handled, check the SEARCH PATH section of manpath(5), it's giving detail ๐Ÿ“š

๐Ÿ“ FILES ๐Ÿ“

  • /etc/manpath.config โ€” the man-db configuration file ๐ŸŽ€
  • /usr/man/index.(bt|db|dir|pag) โ€” a traditional global index database cache ๐Ÿฆ‹
  • /var/catman/index.(bt|db|dir|pag) โ€” an alternate, or FSSTND compliant, global index database cache ๐ŸŒˆ

๐Ÿ”— SEE ALSO ๐Ÿ”—

man(1), manpath(5), mandb(8) ๐Ÿ’œ

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

The legends behind this are:

  • Wilf. (G.Wilford@ee.surrey.ac.uk) ๐Ÿ’…
  • Fabrizio Polacco (fpolacco@debian.org) โœจ
  • Colin Watson (cjwatson@debian.org) ๐Ÿซถ

๐Ÿ› BUGS ๐Ÿ›

bugs? not on my watch ๐Ÿ™ˆ Report them here:

Version 2.13.1, dated 2025-05-02, and that's a wrap bestie ๐ŸŒˆ๐Ÿ’–โœจ

๐Ÿ“ฆ where this page comes from