有趣的是,在听了 25 年的 apropos 可以做什么之后——25 年前我不明白它可以做什么——昨天我才发现它是为你可以使用哪些工具或命令提出建议。如:
apropos editor
Run Code Online (Sandbox Code Playgroud)
它将显示一个包含pico
和的列表vim
。但是,我找不到emacs
,无论我用什么键盘,emacs
都不会显示。有没有办法真正找到它?
(我使用的是 Ubuntu 15.10)
apropos
只需在手册页中搜索简短的描述和名称。当您打开手册页时,例如man apropos
:
NAME
apropos - search the manual page names and descriptions
??????? ?????????????????????????????????????????????
name short description
Run Code Online (Sandbox Code Playgroud)
apropos
在此部分中搜索每个手册页都有的关键字。
的手册页emacs
只是editor
在其简短描述中没有提到这个词:
$ man emacs
[...]
NAME
emacs - GNU project Emacs
Run Code Online (Sandbox Code Playgroud)