执行一下命令安装以后就可以locate XXX了
yum install mlocate
updatedb
然后,在linux里使用和find一样的功能
例如 find -name xx
locate xxx