🔍 See Original Question on Ask Ubuntu ⧉ 🔗
Locate command is returning too many results
February 19, 2018
Edited: March 30, 2018
December 3, 2023
Copy to clipboard: false
/assets/js/search.js will update text..
I made the mistake of copying the same files to different partitions with good intentions of pruning (deleting) them from the source or target(s) later. Now when I try to locate them I get too many results from
rick@alien:~$ locate "display-auto-brightness" /etc/cron.d/display-auto-brightness /home/rick/Pictures/display-auto-brightness conky.png /home/rick/Pictures/display-auto-brightness systray.png /home/rick/Pictures/display-auto-brightness-config 1.png /home/rick/Pictures/ps display-auto-brightness.png /lib/systemd/system-sleep/display-auto-brightness /mnt/e/etc/cron.d/display-auto-brightness /mnt/e/lib/systemd/system-sleep/display-auto-brightness /mnt/e/usr/local/bin/display-auto-brightness /usr/local/bin/display-auto-brightness
locate command is automatically placing the
* wild card after the search string and returning extra undesired results. The
.png files should not be returned.
locate returning too many results?