locate can't find files?
MR ZenWiz
mrzenwiz at gmail.com
Sat May 14 04:04:45 UTC 2022
On Fri, May 13, 2022 at 8:37 PM Dave Stevens via ubuntu-users
<ubuntu-users at lists.ubuntu.com> wrote:
>
:
>
> have you tried running updatedb since the reboot?
>
Yes. - See below.
> I'm not at a Linux box right now but it may be that plocate needs a
> different update command, see here: https://www.kali.org/tools/plocate/
>
The following is somewhat useful:
20:55 [admar at marbase:~/Downloads] $ ll /usr/bin/updatedb
lrwxrwxrwx 1 root root 26 Nov 1 2021 /usr/bin/updatedb ->
/etc/alternatives/updatedb*
20:56 [admar at marbase:~/Downloads] $ ll /etc/alternatives/updatedb
lrwxrwxrwx 1 root root 26 Nov 1 2021 /etc/alternatives/updatedb ->
/usr/sbin/updatedb.plocate*
And:
20:56 [admar at marbase:~/Downloads] $ which locate
/usr/bin/locate
20:58 [admar at marbase:~/Downloads] $ ll /usr/bin/locate
lrwxrwxrwx 1 root root 24 Nov 1 2021 /usr/bin/locate ->
/etc/alternatives/locate*
20:58 [admar at marbase:~/Downloads] $ ll /etc/alternatives/locate
lrwxrwxrwx 1 root root 16 Nov 1 2021 /etc/alternatives/locate ->
/usr/bin/plocate*
So it appears that plocte has replaced locate, and updatedb.plocate
has replaced updatedb. Some notice of this might have been usefl - I
didn't see any.
I looked at the URL you posted, and the one that has me puzzled is
plocate-build - it seems to require both an mlocate.db and plocate.db,
but the former no longer exists.
I did run updatedb.plocate (which is what upatedb resolves to), and it
still can't find the files. I have no trouble locating them with find,
which is amazingly faster than I can ever remember:
20:59 [admar at marbase:~/Downloads] $ time find / -name "ImprovicusM*"
/htera/Videos/Improvicus/ImprovicusM0821-02.png
/htera/Videos/Improvicus/ImprovicusM0821-03.png
/htera/Videos/Improvicus/ImprovicusM0402.mp4
/htera/Videos/Improvicus/ImprovicusM0212.mp4
/htera/Videos/Improvicus/ImprovicusM0129.mp4
/htera/Videos/Improvicus/ImprovicusM0205.mp4
/htera/Videos/Improvicus/ImprovicusM0219.mp4
/htera/Videos/Improvicus/ImprovicusM0226.mp4
/htera/Videos/Improvicus/ImprovicusM0121.mp4
/htera/Videos/Improvicus/ImprovicusM0409-screenshot.jpg
/htera/Videos/Improvicus/ImprovicusM0312.mp4
/htera/Videos/Improvicus/ImprovicusM0821-04.png
/htera/Videos/Improvicus/ImprovicusM0305.mp4
/htera/Videos/Improvicus/ImprovicusM0326.mp4
/htera/Videos/Improvicus/ImprovicusM0430.mp4
/htera/Videos/Improvicus/ImprovicusM0108.mp4
/htera/Videos/Improvicus/ImprovicusM0319.mp4
/htera/Videos/Improvicus/ImprovicusM0409.mp4
/htera/Videos/Improvicus/ImprovicusM0821-01.png
/htera/Videos/Improvicus/ImprovicusM0423.mp4
/htera/Videos/Improvicus/ImprovicusM0507.mp4
real 0m0.783s
user 0m0.288s
sys 0m0.492s
(Output redacted, a it also find those files in /home/Videos, which is
bind-mounted to /htera/Videos. - Long story...)
even cold form reboot, find runs way faster than it used to. Great
job, whoever did that1
Thanks though.
Mark
More information about the ubuntu-users
mailing list