.\" Man page for manpath .\" .\" Copyright (C), 1995, Graeme W. Wilford. (Wilf.) .\" .\" You may distribute under the terms of the GNU General Public .\" License as specified in the COPYING file that comes with the .\" man-db distribution. .\" .\" Sun Jan 22 22:15:17 GMT 1995 Wilf. (G.Wilford@ee.surrey.ac.uk) .\" .pc "" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH MANPATH 1 2014-09-28 2.7.0.2 手册分页显示工具 .SH NAME manpath \- 确定手册页的搜索路径 .SH 概述 \fBmanpath\fP [\|\fB\-qgdc?V\fP\|] [\|\fB\-m\fP \fIsystem\fP\|[\|,.\|.\|.\|]\|] [\|\fB\-C\fP \fIfile\fP\|] .SH 描述 如果设置了 $\fBMANPATH\fP,\fBmanpath\fP 只会显示其内容并发出一条警告。如果未设置,\fBmanpath\fP 会确定一个合适的手册页层次结构搜索路径并显示结果。 冒号分隔的路径使用由 man\-db 配置文件 \- (\fI/etc/manpath.config\fP) 和用户环境变量所得到的信息确定。 .SH 选项 .TP .if !'po4a'hide' .BR \-q ", " \-\-quiet 不发出警告。 .TP .if !'po4a'hide' .BR \-d ", " \-\-debug 打印调试信息。 .TP .if !'po4a'hide' .BR \-c ", " \-\-catpath 生成针对 manpath 的 catpath。一旦确定了 manpath,每个路径元素将转换为它的相对 catpath。 .TP .if !'po4a'hide' .BR \-g ", " \-\-global .\" .\" Due to the rather silly limit of 6 args per request in some `native' .\" *roff compilers, we have do the following to get the two-line .\" hanging tag on one line. .PP to begin a new paragraph, then the .\" tag, then .RS (start relative indent), the text, finally .RE .\" (end relative indent). .\" 在 man\-db 配置文件中生成一个名为“global”的,包含所有路径的 manpath。 .PP \fB\-m\fP \fI系统\fP\|[\|,.\|.\|.\|]\|, \fB\-\-systems=\fP\fI系统\fP\|[\|,.\|.\|.\|] .RS 如果此系统可以访问其他操作系统的手册页层次结构,可以使用此选项将它们包含在 \fBmanpath\fP 的输出中。要包含NewOS 的手册页层次结构,使用 \fB\-m\fP \fBNewOS\fP 选项。 指定的 \fI系统\fP 选项可以是逗号分隔的操作系统名称组合。要包括本地操作系统的手册页层次结构,可以在参数字符串中包含系统名 \fBman\fP。此选项会覆盖 $\fBSYSTEM\fP 环境变量。 .RE .TP \fB\-C\ \fP\fI文件\fP,\ \fB\-\-config\-file=\fP\fI文件\fP 使用此用户配置文件代替默认的 \fI~/.manpath\fP。 .TP .if !'po4a'hide' .BR \-? ", " \-\-help 打印帮助消息并退出。 .TP .if !'po4a'hide' .BR \-\-usage Print a short usage message and exit. .TP .if !'po4a'hide' .BR \-V ", " \-\-version 显示版本信息。 .SH 环境 .TP .if !'po4a'hide' .B MANPATH 如果设置了 $\fBMANPATH\fP,\fBmanpath\fP 显示它的值,而不是在运行时确定它。如果 $\fBMANPATH\fP 前缀是冒号,则变量的值会追加到从配置文件内容确定的列表之后。如果冒号在变量值的结尾,则确定的列表会追加到变量内容之后。如果变量的值包含双冒号(\fB::\fP),则确定的列表会插入值的中间,两个冒号间。 .TP .if !'po4a'hide' .B SYSTEM 如果设置了 $\fBSYSTEM\fP 环境变量,则和将它指定为 \fB\-m\fP 选项的参数效果相同。 .SH 文件 .TP \w'/etc/manpath.config'u+2n .if !'po4a'hide' .I /etc/manpath.config man\-db 配置文件。 .SH 亦见 .if !'po4a'hide' .BR apropos (1), .if !'po4a'hide' .BR man (1), .if !'po4a'hide' .BR whatis (1) .SH 作者 .nf .if !'po4a'hide' Wilf. (G.Wilford@ee.surrey.ac.uk). .if !'po4a'hide' Fabrizio Polacco (fpolacco@debian.org). .if !'po4a'hide' Colin Watson (cjwatson@debian.org). .fi