Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4174239
  • 博文数量: 601
  • 博客积分: 15410
  • 博客等级: 上将
  • 技术积分: 6884
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-16 08:11
个人简介

独学而无友,则孤陋而寡闻!

文章分类

全部博文(601)

文章存档

2020年(1)

2018年(4)

2017年(7)

2016年(42)

2015年(25)

2014年(15)

2013年(36)

2012年(46)

2011年(117)

2010年(148)

2009年(82)

2008年(37)

2007年(41)

分类: BSD

2007-07-14 00:21:49

一个小经验,既当学习笔记,又给新手们看:

  这几天老装机器,习惯性地用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,等上一会儿,就可以用了。
阅读(2085) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~