如何找到某些内容的手册页的名称?

Chi*_*Abs 12 man

假设我想要与 luks 相关的手册页。man luks不起作用,有没有一种快速的方法可以让我使用 bash 中的关键字 luks 找到手册页?

Ste*_*itt 16

你正在寻找apropos; 我的系统上apropos luks指向我cryptsetup(8)luksformat(8)和其他一些相关的联机帮助页。

apropos,相当于man -k,在已安装的联机帮助页的名称和描述中查找其命令行上给出的搜索文本。搜索文本可以包括正则表达式或 shell 样式的 glob(使用apropos、使用-r-w选项;-r是默认值)。

man -K允许搜索所有已安装联机帮助页的所有内容。这需要比apropos或更长的时间man -k

(感谢Stephen Harrisclusterdude的额外说明。)


maz*_*azs 10

尝试使用apropos,它将在手册页的标题/描述中搜索某个字符串:

apropos luks
Run Code Online (Sandbox Code Playgroud)