Linux Commands Examples

A great documentation place for Linux commands

manpath

determine search path for manual pages


see also : apropos - man - whatis

Synopsis

manpath [-qgdchV] [-m system[,...]] [-C file]


add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !

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 configuration file.

-m system[,...], --systems=system[,...]

If this system has access to other operating system’s 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.

-C file--config-file=file

Use this user configuration file rather than the default of ~/.manpath.

-h, --help

Print a help 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. If $MANPATH is prefixed by a colon, then the value of the variable is appended to the list determined from the content of the configuration files. If the colon comes at the end of the value in the variable, then the determined list is appended to the content of the variable. If the value of the variable contains a double colon (::), then the determined list is inserted in the middle of the value, between the two colons.

SYSTEM

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

files

/etc/manpath.config

man-db configuration file.


see also

apropos , man , whatis


author

Wilf. (G.Wilford[:at:]ee.surrey.ac[:dot:]uk).
Fabrizio Polacco (fpolacco[:at:]debian[:dot:]org).
Colin Watson (cjwatson[:at:]debian[:dot:]org).

How can this site be more helpful to YOU ?


give  feedback