# MANPATH - determine search path for manual pages - man - [phpMan]

> **TLDR:** Determine the search path for manual pages.
>
- Display the search path used to find man pages:
  `manpath`
- Show the entire global manpath:
  `manpath {{-g|--global}}`

*Source: tldr-pages*

---

[_MANPATH_(1)](https://www.chedong.com/phpMan.php/man/MANPATH/1/markdown)                               Manual pager utils                               [_MANPATH_(1)](https://www.chedong.com/phpMan.php/man/MANPATH/1/markdown)

## NAME
       manpath - determine search path for manual pages

## SYNOPSIS
       **manpath **[**-qgdc?V**] [**-m _**system_[,...]] [**-C _**file_]

## DESCRIPTION
       If  $**MANPATH  **is  set, **manpath **will simply display its contents and issue a warning.  If not,
       **manpath **will determine a suitable manual page hierarchy search path and display the results.

       The colon-delimited path is determined using information gained from the man-db configuration
       file – (_/etc/manpath.config_) and the user's environment.

## OPTIONS
### -q --quiet
              Do not issue warnings.

### -d --debug
              Print debugging information.

### -c --catpath
              Produce a catpath as opposed to a manpath.  Once the manpath is determined, each  path
              element is converted to its relative catpath.

### -g --global
              Produce a manpath consisting of all paths named as "global" within the man-db configu‐
              ration file.

### -m _ --systems=_
              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 **envi‐
              ronment variable.

### -C _ --config-file=_
              Use this user configuration file rather than the default of _~/.manpath_.

       **-?**, **--help**
              Print a help message and exit.

### --usage
              Print a short usage message and exit.

### -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)](https://www.chedong.com/phpMan.php/man/manpath/5/markdown) for the default behaviour and details of how
              this environment variable is handled.

       **SYSTEM **If $**SYSTEM **is set, it will have the same effect as if it had been specified as the ar‐
              gument to the **-m **option.

## FILES
       _/etc/manpath.config_  man-db configuration file.

## SEE ALSO
       [**apropos**(1)](https://www.chedong.com/phpMan.php/man/apropos/1/markdown), [**man**(1)](https://www.chedong.com/phpMan.php/man/man/1/markdown), [**whatis**(1)](https://www.chedong.com/phpMan.php/man/whatis/1/markdown)

## AUTHOR
       Wilf. (<G.Wilford@ee.surrey.ac.uk>).
       Fabrizio Polacco (<fpolacco@debian.org>).
       Colin Watson (<cjwatson@debian.org>).

## BUGS
       <https://gitlab.com/man-db/man-db/-/issues>
       <https://savannah.nongnu.org/bugs/?group=man-db>

2.12.0                                       2023-09-23                                   [_MANPATH_(1)](https://www.chedong.com/phpMan.php/man/MANPATH/1/markdown)
