- 论坛徽章:
- 54
|
一个小经验,既当学习笔记,又给新手们看:
这几天老装机器,习惯性地用locate,结果老是报错,说数据库(/var/db/locate.database )太小,ls一下,结果发现是空文件。害得我把系统重装了两次。
最后man了一下,在最后一段,bug区里,竟然发现:
QUOTE: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.
直接输入/etc/periodic/weekly/310.locate,等上一会儿,就可以用了。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38866/showart_339690.html |
|