首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么man -k或Apropos不能找到一些页面,而man -a却能找到?

为什么man -k或Apropos不能找到一些页面,而man -a却能找到?
EN

Unix & Linux用户
提问于 2020-09-15 19:27:40
回答 2查看 506关注 0票数 2

在我的Pop!_OS 20.04 LTS系统上,如果我使用man -aw printf,它将返回:

代码语言:javascript
复制
/usr/share/fish/man/man1/printf.1
/usr/share/man/man1/printf.1.gz
/usr/share/man/man3/printf.3.gz

但是,如果我使用man -k printfman -f printfapropos printf,它只会返回以下信息:

代码语言:javascript
复制
/usr/share/man/man1/printf.1.gz
/usr/share/man/man3/printf.3.gz

为什么这些命令找不到man -a可以找到的东西?

我尝试过mandb,它没有什么需要更新的。

EN

回答 2

Unix & Linux用户

发布于 2020-09-15 20:10:09

男人:

代码语言:javascript
复制
   -w, --where, --path, --location
          Don't actually display the manual page, but do print  the  loca‐
          tion  of  the source nroff file that would be formatted.  If the
          -a option is also used, then print the locations of  all  source
          files that match the search criteria.
票数 0
EN

Unix & Linux用户

发布于 2020-09-16 01:08:49

这取决于您的man(1)的确切版本(我非常怀疑它是最初的Unix .),以及配置(MANPATH环境变量,/etc/man_db.conf for Linux的内容‘-Debian的真正-版本,.)。

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/609561

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档