这几天老装机器,习惯性地用locate,结果老是报错,说数据库(/var/db/locate.database )太小,ls一下,结果发现是空文件。害得我把系统重装了两次。
The locate program may fail to list some files that are present, or may
list files that have been removed from the system. This is because
locate only reports files that are present in the database, which is typ-
ically only regenerated once a week by the
/etc/periodic/weekly/310.locate script.