首页 > 代码库 > unix系统中man出现“nothing appropriate”

unix系统中man出现“nothing appropriate”

   最近在一台新部署的服务器上用man -f查阅帮助的信息的时候遇上竟然会报“nothing appropriate”,当时以为是man没有安装于是就用yum安装了下,结果发现man是有安装过的,于是就man man去找-f的参数选项去看了下,有这一句“Equivalent to whatis.”man -f 其实就是使用whatis,于是就用whatis结果发现不能用,于是又man  whatis结果发现了这一句:

The whatis database is created using the command /usr/sbin/makewhatis.

原来man -f 就是使用whatis或者是apropos,当然这两个指令必须要用root用户才能使用,而使用whatis或者是apropos必须要创建whatis的数据库才行于是运行了makewhatis后再用man -f看了下正常了

本文出自 “技术随笔” 博客,请务必保留此出处http://jim123.blog.51cto.com/4763600/1881553

unix系统中man出现“nothing appropriate”