Centos - locate command not working

We have Centos 7.
Trying to use the "locate" command does not give anything, even if the search file [s] really exists.
Error not printed.
It also runs "sudo updatedb" to update the "locate" indexes.

Any ideas?

thank you

+6
source share
2 answers

To install the location package, use yum:

$ yum install mlocate 

To update your "internal database", run the following command.

 $ updatedb 
+18
source

In addition, most of these quick search programs work only on local file systems, that is, on NFS or CIFS. $ 0.02.

0
source

All Articles