apropos keyword...
apropos 实用程序显示包含 keyword 的每个手册页的手册页名称、节编号、小节名称、keyword 和简要描述。
此信息包含在索引文件中,索引文件由 SMF 服务自动创建(如 man(1) 和 man(5) 中所述),或使用带有 –w 选项的 catman(1M) 手动创建。
系统单独考虑每个词并忽略字母的大小写。还支持英语单词的词干提取以及节匹配功能。系统会考虑属于其他词一部分的词。例如,当查找 compile 时,apropos 也会找到 compiler 的所有实例。
apropos 只是 man(1) 命令的 –k 选项,有关详细信息,请参见 man(1)。
尝试
example% apropos password
和
example% apropos editor
如果该行以 filename(section) ... 开头,则可以运行
man -s section filename
以显示 filename 的手册页。
示例 2 查找 printf() 子例程的手册页尝试
example% apropos format
然后尝试
example% man -s 3s printf
获取子例程 printf() 的手册页。
目录和关键字数据库。
生成的文件包括:
/usr/share/man/man_index/man.idx
/usr/share/man/man_index/man.dic
/usr/share/man/man_index/man.frq
/usr/share/man/man_index/man.pos
有关下列属性的说明,请参见 attributes(5):
|