手册页部分 1: 用户命令

退出打印视图

更新时间: 2014 年 7 月
 
 

apropos(1)

名称

apropos - 使用关键字查找功能来查找命令

用法概要

apropos keyword...

描述

apropos 实用程序显示包含 keyword 的每个手册页的手册页名称、节编号、小节名称、keyword 和简要描述。

此信息包含在索引文件中,索引文件由 SMF 服务自动创建(如 man(1)man(5) 中所述),或使用带有 –w 选项的 catman(1M) 手动创建。

系统单独考虑每个词并忽略字母的大小写。还支持英语单词的词干提取以及节匹配功能。系统会考虑属于其他词一部分的词。例如,当查找 compile 时,apropos 也会找到 compiler 的所有实例。

apropos 只是 man(1) 命令的 –k 选项,有关详细信息,请参见 man(1)

示例

示例 1 使用包含 keyword 的名称行查找手册页

尝试

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/*

目录和关键字数据库。

生成的文件包括:

  • /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)

属性类型
属性值
可用性
text/doctools
CSI
Enabled(已启用)
接口稳定性
Committed(已确定)

另请参见

man(1)whatis(1)catman(1M)attributes(5)man(5)