欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

man -k, man -f : nothing appropriate ; 更新 whatis 数据库

程序员文章站 2022-06-22 08:50:15
man 有两个选项: 当我们使用的时候,如果没有建立whatis 数据库 就会出现 nothing appropriate 的信息; 我们可以使用 makewhatis 来更新; 当然也可以使用 mandb 命令: 之后你就可以进行使用关键字进行搜索了; 简单记录,防止遗忘;如果对您有帮助,请点击推 ......

man 有两个选项:

-f, –whatis 
equivalent to whatis. display a short description from the manual page, if available. see whatis(1) for details. 
-k, –apropos 
equivalent to apropos. search the short manual page descriptions for keywords and display any matches. see apropos(1) for details. 

当我们使用的时候,如果没有建立whatis 数据库 就会出现 nothing appropriate 的信息;

我们可以使用 ;

当然也可以使用 mandb 命令

 mandb - create or update the manual page index caches

之后你就可以进行使用关键字进行搜索了;

man -k, man -f : nothing appropriate ; 更新 whatis 数据库

简单记录,防止遗忘;如果对您有帮助,请点击推荐给予鼓励吧~