.\" Man page for manpath .\" .\" Copyright (C) 1995, Graeme W. Wilford. (Wilf.) .\" Copyright (C) 2001-2019 Colin Watson. .\" .\" You may distribute under the terms of the GNU General Public .\" License as specified in the docs/COPYING.GPLv2 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 2026-11-16 2.13.3 手動分頁工具 .SH 名稱 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 設定檔 \(en (\fI/etc/man_db.conf\fP) 和使用者環境獲得資訊來判斷的。 .SH 選項 .TP .if !'po4a'hide' .BR \-q ", " \-\-quiet 不發出警告。 .TP .if !'po4a'hide' .BR \-d ", " \-\-debug 列印除錯資訊。 .TP .if !'po4a'hide' .BR \-c ", " \-\-catpath 產生 catpath 而非 manpath。一旦 manpath 確定,每個路徑元素都會轉換為其相對的 catpath。 .TP .if !'po4a'hide' .BR \-g ", " \-\-global 產生一個由 man\-db 設定檔內名為「global」的所有路徑組成的 manpath。 .TP \fB\-m\fP \fIsystem\fP\|[\|,.\|.\|.\|]\|, \fB\-\-systems=\fP\fIsystem\fP\|[\|,.\|.\|.\|] 如果此系統可以存取其他作業系統的階層,此選項可用來將它們包含在 \fBmanpath\fP 的輸出中。要包含 NewOS 的手動分頁階層,請使用選項 \fB\-m\fP \fBNewOS\fP。 指定的 \fIsystem\fP 可以是逗號分隔的作業系統名稱的組合。要包含原生作業系統的手動分頁階層,必須在引數字串中包含系統名稱 \fBman\fP。此選項將覆寫 $\fBSYSTEM\fP 環境變數。 .TP \fB\-C\ \fP\fIfile\fP,\ \fB\-\-config\-file=\fP\fIfile\fP 使用此使用者設定檔,而非預設的 \fI\(ti/.manpath\fP。 .TP .if !'po4a'hide' .BR \-? ", " \-\-help 列印說明訊息並退出。 .TP .if !'po4a'hide' .B \-\-usage 列印簡短用法訊息並退出。 .TP .if !'po4a'hide' .BR \-V ", " \-\-version 顯示版本資訊。 .SH 環境 .TP .if !'po4a'hide' .B MANPATH 如果已設定 $\fBMANPATH\fP,\fBmanpath\fP 會顯示其價值而非即時判斷。 請參閱 \fBmanpath\fP(5) 的 \fBSEARCH PATH\fP 區段,了解此環境變數的預設行為和處理方式的詳細資訊。 .TP .if !'po4a'hide' .B SYSTEM 如果已設定 $\fBSYSTEM\fP,其效果與將指定為 \fB\-m\fP 選項的引數相同。 .SH 檔案 .TP \w'/etc/man_db.conf'u+2n .if !'po4a'hide' .I /etc/man_db.conf 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 .SH 錯誤 .if !'po4a'hide' https://gitlab.com/man-db/man-db/\-/issues .br .if !'po4a'hide' https://savannah.nongnu.org/bugs/?group=man\-db