manpath(1)

manpath1

Display search path for manual pages

Usage

manpath [-Ldq]

Overview

The manpath utility determines the user's manual search path from the user's PATH, and local configuration files. This result is echoed to the standard output.

-L

Output manual locales list instead of the manual path.

-d

Print extra debugging information.

-q

Suppresses warning messages.

Implementation notes

The manpath utility constructs the manual path from two sources:

  1. From each component of the user's PATH for the first of:

    • pathname/man

    • pathname/MAN

    • If pathname ends with /bin: pathname/../share/man and pathname/../man

  2. The configuration files listed in the FILES section for MANPATH entries.

The information from these locations is then concatenated together.

If the -L flag is set, the manpath utility will search the configuration files listed in the FILES section for MANLOCALE entries.

Environment

The following environment variables affect the execution of manpath:

MANLOCALES

If set with the -L flag, causes the utility to display a warning and the value, overriding any other configuration found on the system.

MANPATH

If set, causes the utility to display a warning and the value, overriding any other configuration found on the system.

PATH

Influences the manual path as described in the IMPLEMENTATION NOTES.

Files

/etc/man.conf

System configuration file.

/usr/local/etc/man.d/*.conf

Local configuration files.

Releases

87 releases since FreeBSD 2.0.5-RELEASE; the text changed 42 times.

  1. 2.0.5–2.1.7.1
  2. 2.2.2–3.2
  3. 3.3–3.5.1
  4. 4.0–4.2
  5. 4.3
  6. 4.4
  7. 4.5–4.11
  8. 5.0–5.5
  9. 6.0–6.3
  10. 6.4
  11. 7.0
  12. 7.1
  13. 7.2
  14. 7.3
  15. 7.4
  16. 8.0
  17. 8.1
  18. 8.2
  19. 8.3
  20. 8.4
  21. 9.0
  22. 9.1
  23. 9.2
  24. 9.3
  25. 10.0
  26. 10.1
  27. 10.2
  28. 10.3
  29. 10.4
  30. 11.0
  31. 11.1
  32. 11.2
  33. 11.3
  34. 11.4
  35. 12.0
  36. 12.1
  37. 12.2
  38. 12.3
  39. 12.4
  40. 13.0–13.2
  41. 13.3–14.2
  42. 14.3–15.1
  43. 16.0

-L since FreeBSD 4.0-RELEASE; -d since FreeBSD 4.0-RELEASE.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.