方法如下:运行更新库命令 shell:>/usr/libexec/locate.updatedb 如果系统文件比较多可能需要比较长的时间,等运行完毕之后, 就可以使用 locate 命令检索文件了! 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/70922/showart_1001280.html
一个小经验,既当学习笔记,又给新手们看: 这几天老装机器,习惯性地用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...
我的系统是redhat 3.0 ,在系统中有一些文件已删除,但用locate 查找文件时,这些已删除的同名文件还会被显示出来,但实际路径中已不存在,为什么啊。怎么解决? 请教 。
make world后weekly run output之Rebuilding locate database出错 收到这样的报告 [quote]Cleaning up kernel database files: Rebuilding locate database: /usr/libexec/locate.updatedb: cannot create /var/db/locate.database: Permission denied Rebuilding whatis database: -- End of weekly output -- [/quote] mergermaster -i过 是什么问题? 同样,newsyslog也报错: [quote]newsyslog: can't open ...
solaris10 GA x86 entire installed I want to find my web browser's plug-in dictionary,where is it? I can't find it!
postfix + cyrus-imapd Fedora core 3 为什么提示Unable to locate maildrop ?
装了一个findutils 4.1在我的机子上,刚开始用的挺好,最近只要一运行locate filename就有段错误: Segmentation error(core dumped)! 怎么办,求助各位大侠!
我使用的操作系统是,RED HAT Linux 9 .在很长一段时间不用以后,在使用locate 命令时发生了一些小问题. warning : locate :warning :database /var/lib/slocate/locate.db is more than 8 days old. 不知道如何更新数据库.