Centos - "locate"命令不起作用

use*_*774 13 unix search centos locate centos7

我们有Centos 7.
即使搜索到的文件[s]实际存在,尝试使用'locate'命令也不会产生任何结果.
没有打印错误.
还执行'sudo updatedb'来更新'locate'索引.

有任何想法吗?

谢谢

l'L*_*L'l 32

要安装locate软件包,请使用yum:

$ yum install mlocate
Run Code Online (Sandbox Code Playgroud)

要更新它的"内部数据库",请运行以下命令.

$ updatedb
Run Code Online (Sandbox Code Playgroud)