From what I was reading in the Stack Overflow thread I sent in my last email, `-prune` doesn't prevent traversal of the pruned directories. If that's true, then I wouldn't expect it to make your find command any faster.
Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, November 28, 2019 10:02 PM, John Jason Jordan <[email protected]> wrote: > On Thu, 28 Nov 2019 18:02:58 -0800 (PST) > Rich Shepard [email protected] dijo: > > > Why does locate fail you? If your system is on overnight the database > > is updated. If not, as root (sudo) you can run updatedb (see man > > updatedb). > > You can use part of a filename with locate and try different strings to > > isolate what you want. Since locate searches the slocate database > > you're not doing a sequential search through terrabytes of data. > > I tried updatedb as jjj and with sudo and it did nothing much. It took > about one second to complete. Clearly it is not updating the database > for all files on all partitions. > > I think I found one solution - find with the --prune option. I'm trying > to figure out the syntax to make it exclude the entire /media folder > (because that's where everything but / and /home are mounted). I wish > man pages would give examples of usage. > > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
