问题原文
原帖链接 · eComEvo · CC BY-SA 3.0
When I search for something simple such as locate php.ini or locate my.cnf I get no results.
This works as expected on one of my Ubuntu 14.04 boxes but not on the other. Do I need to change an indexing setting?
已采纳解答
原帖链接 · Nasir Riley · CC BY-SA 3.0
Look into your /etc/updatedb.conf and check that the filenames that you are searching for or the directory locations are not in the PRUNE settings.
Also, if the files are fairly new, try the following command:
updatedb
Make sure that you are running as root.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
