linux - 在 linux 中找不到文件,即使 "locate"返回它的位置

标签 linux postgresql ubuntu postgis locate

<分区>

我在 ubuntu 14.04 上安装了 postgis-9.3,它应该有一个名为“shp2pgsql”的函数。当我“定位”它的位置时,它会返回结果,但实际上它不在那里。

yang@ubuntu:~$ locate shp2pgsql-gui
/home/yang/shp2pgsql-gui (1).1
/usr/bin/shp2pgsql-gui
/usr/share/man/man1/shp2pgsql-gui.1.gz
yang@ubuntu:~$ /usr/bin/sh
sha1pass         sha384sum        showconsolefont  shred
sha1sum          sha512sum        showfont         shuf
sha224sum        shasum           showkey          
sha256sum        shotwell         showrgb          
yang@ubuntu:~$ /usr/bin/shp2pgsql-gui
-su: /usr/bin/shp2pgsql-gui: No such file or directory

我在哪里可以找到 shp2pgsql?谢谢

最佳答案

locate 告诉您上次更新数据库时哪些文件确实存在;那(不需要查看文件系统的真实当前状态)就是它如此之快的原因。它不能向您保证它们现在还在那里。如果您想使定位数据库保持最新,请运行 sudo updatedb

关于linux - 在 linux 中找不到文件,即使 "locate"返回它的位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31616241/

相关文章:

linux - imagemagick 按目录转换文件

linux - 我可以在没有硬件生成器的情况下使用 rng-daemon 来增加 linux 熵吗?

postgresql - 错误 : WITHIN GROUP is required for ordered-set aggregate mode

django - 模型字段未在 Django 管理中显示正确的编码

linux - 程序员应该使用什么工具从 Windows 机器在 Ubuntu 机器上工作

linux - linux权限的奇怪情况

c++ - 如何以编程方式查找动态库文件的位置?

linux - 通过我的域重定向远程域

python - pandas DataFrame.to_sql 和 nan 值

ruby-on-rails - 程序 'rails' 当前未安装在 Rails 应用程序文件夹的根目录中