我正在读一本关于管理的书,我想知道我的答案是否与命令有关man
。我正在运行 Ubuntu。
问题 1:如何读取
sync
保存的本地手册页/usr/local/share/man
?
我的答案是
man l sync
但我不认为我正确,因为它给出了这个输出;
第 l 节中没有关于同步的手动条目,当手册页不可用时,请参阅“man 7 undocumented”以获取帮助。
有人可以更好地解释这个问题的答案吗?
答案1
从man(1)
手册页中:
-M path, --manpath=path
Specify an alternate manpath to use. By default, man uses man‐
path derived code to determine the path to search. This option
overrides the $MANPATH environment variable and causes option -m
to be ignored.
A path specified as a manpath must be the root of a manual page
hierarchy structured into sections as described in the man-db
manual (under "The manual page system"). To view manual pages
outside such hierarchies, see the -l option.
所以,man -M /usr/local/share/man sync
。