this post was submitted on 08 Mar 2025
63 points (97.0% liked)

Linux

6323 readers
248 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 10 points 1 day ago (2 children)

find can be a bit slow because it enumerates every directory recursively from the root you specified, but it let's you do a lot more than just search by name. locate is available on most distros and give fast results, albiet from when the index was last rebuilt (usually nightly). They both have the vital property that they output a list of files to stdout for further processing.

[–] [email protected] 3 points 1 day ago

+1 for locate and updatedb. It works on macos too.

[–] ObsidianZed 4 points 1 day ago

It's worth mentioning you can manually kick off an index build with I believe updatedb (in most cases).