我读过几篇文章(man -k不返回结果)和第一次运行mandb (什么都没有更新),然后是mandb -c (7438 manual pages were added.),仍然
$ apropos compilation compilation: nothing appropriate.
但
$ MANWIDTH=120 man objdump | grep -B 5 compilation
DESCRIPTION
objdump displays information about one or more object files. The options control what particular information
to display. This information is mostly useful to programmers who are working on the compilation tools, as清晰地显示compilation在手册页的DESCRIPTION部分中。
$ man apropos
Each manual page has a short description available within it. apropos searches the descriptions for instances of keyword.为什么apropos找不到它?
系统: Linux 19
发布于 2019-09-30 11:14:57
当man apropos引用“一个简短的描述”时,它指的不是手册页的“描述”部分,而是“名称”部分中命令名称后面的简短描述。在objdump‘S的案子里,那是
名称
objdump-显示来自对象文件的信息。
也就是说,简短的描述是“从对象文件中显示信息”。
的确,
apropos "object files"找到了objdump。
https://unix.stackexchange.com/questions/544438
复制相似问题