看鸟哥的linux,提到了man -f man
命令,执行后提示nothing appropriate。使用man man
发现,man -f man
相当于whatis man
而whatis
使用前需建立数据库,命令以centos 7为分割,7之前使用
makewhatis
centos 7及之后使用
mandb
执行该命令,再使用whatis man
ok
看鸟哥的linux,提到了man -f man
命令,执行后提示nothing appropriate。使用man man
发现,man -f man
相当于whatis man
而whatis
使用前需建立数据库,命令以centos 7为分割,7之前使用
makewhatis
centos 7及之后使用
mandb
执行该命令,再使用whatis man
ok