Why doesn't man -k (or apropos) work?
Before you can use man -k or apropos, you must create the whatis database. Just run the command
/usr/sbin/makewhatis
(it may take a minute to complete).
reason:
检索参数所查阅的资料库是位于Linux系统中一个名为whatis的资料库,这个资料库会搜集系统内所有指令的资讯,通常会在每天的午夜时分进行自动更新的作业,如果当你的主机可能没开启超过更新的时间时,该资料库便不会自动产生。此时,如果你又透过检索参数进行查阅时,会得到nothing appropriate这样的错误讯息回应。
这时候你可以透过root使用者执行makewhatis这个指令来手动建立此资料库,有了这个资料库才能使用whatis跟apropos这两个指令或是man的检索参数来查询指令。
make 时nothing approprite 问题的解决办法
最新推荐文章于 2025-08-19 14:35:05 发布