当前位置: 技术问答>linux和unix
初学linux,想用locate这条命令查文件,可是出现问题,请高手帮小弟一下忙
来源: 互联网 发布时间:2015-06-04
本文导语: 我用的是redflag4.0,当我输入 locate *.html时;提示:warning could not open dataase:/var/lib/slocate/slocate.db:no such file or directory.该如何解决呢,在root用户下怎么create the database? | su 到 root,然后输入updat...
我用的是redflag4.0,当我输入 locate *.html时;提示:warning could not open dataase:/var/lib/slocate/slocate.db:no such file or directory.该如何解决呢,在root用户下怎么create the database?
|
su 到 root,然后输入updatedb,等待大概3-5分钟吧,它自动会完成.之后就可以用locate命令了.
|
不需要參數
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。