对手册页的全文搜索

12 man search

apropos非常适合搜索手册页名称和描述。是否有类似的命令来搜索手册页的全部内容?

小智 12

通过使用命令 man man 我们可以看到我们有两个选项。

   -k     Equivalent to apropos.

   -K     Search  for  the  specified  string in *all* man pages. Warning:
          this is probably very slow!  It  helps  to  specify  a  section.
          (Just  to  give  a  rough idea, on my machine this takes about a
          minute per 500 man pages.)
Run Code Online (Sandbox Code Playgroud)

这是在 RHEL 5 系统上