[PLUG] Search entire filesystem except two mounted partitions

Reid nrwahl at protonmail.com
Fri Nov 29 04:05:03 UTC 2019


>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 <johnxj at gmx.com> wrote:

> On Thu, 28 Nov 2019 18:02:58 -0800 (PST)
> Rich Shepard rshepard at appl-ecosys.com 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
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug





More information about the PLUG mailing list