linux中locate查找命令疑惑

mountzf 2016-06-24 09:39:59
大家好!
我在ubuntu14.04版本中使用locate命令查找文件时遇到了一些问题,非常费解,希望各位不吝赐教:

mountzf@mountzf:~$ ls -l
total 68
-rw-rw-r-- 1 mountzf mountzf 157 Jun 23 12:38 2.txt
drwxrwxr-x 5 mountzf mountzf 4096 Jun 19 12:18 catkin_ws
-rw-rw-r-- 1 mountzf mountzf 150 Jun 23 11:17 file1.txt
-rw-rw-r-- 1 mountzf mountzf 77 Jun 23 13:07 file2.txt
-rw-rw-r-- 1 mountzf mountzf 158 Jun 23 12:38 file3.txt
drwxrwxr-x 2 mountzf mountzf 4096 Jun 23 20:53 practice
-rwxrw-r-- 1 mountzf mountzf 209 Jun 23 16:15 sysinfo_page
mountzf@mountzf:~$ locate practice
mountzf@mountzf:~$

我在使用locate命令查找文件时,无法查找我的用户主目录下的文件,如上"locate practice",并没有输出,而查找主目录之外的文件就可以。我已经在超级用户下使用updatedb更新过数据库,并且在root账户下也无法查询此目录下的内容。各位,这是什么问题?
...全文
166 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
nswcfd 2016-06-29
  • 打赏
  • 举报
回复
看看/etc/updatedb.conf,有没有排除在外
mountzf 2016-06-27
  • 打赏
  • 举报
回复
真是。。。没人。。。

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧