在我的Pop!_OS 20.04 LTS系统上,如果我使用man -aw printf,它将返回:
/usr/share/fish/man/man1/printf.1
/usr/share/man/man1/printf.1.gz
/usr/share/man/man3/printf.3.gz但是,如果我使用man -k printf、man -f printf或apropos printf,它只会返回以下信息:
/usr/share/man/man1/printf.1.gz
/usr/share/man/man3/printf.3.gz为什么这些命令找不到man -a可以找到的东西?
我尝试过mandb,它没有什么需要更新的。
发布于 2020-09-15 20:10:09
男人:
-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.发布于 2020-09-16 01:08:49
这取决于您的man(1)的确切版本(我非常怀疑它是最初的Unix .),以及配置(MANPATH环境变量,/etc/man_db.conf for Linux的内容‘-Debian的真正-版本,.)。
https://unix.stackexchange.com/questions/609561
复制相似问题