近日使用FOBOS集群,发现whatis命令返回的不是想要的系统命令的扼要描述,而是nothing appropriate。登录COBI服务器,whatis正常工作。man whatis,阅读,发现有这么一行(见粗体)
NAME
whatis - search the whatis database for complete words.
SYNOPSIS
whatis keyword ...
DESCRIPTION
whatis searches a set of database files containing short descriptions of system commands for keywords and displays the result on the standard output. Only complete word matches are displayed.
The whatis database is created using the command /usr/sbin/makewhatis.
请集群管理员/usr/sbin/makewhatis后,集群上whatis正常工作了。