logoalt Hacker News

flexagoontoday at 5:20 AM2 repliesview on HN

> Finding a specific file by name across the system

> Linux: find / -name "config.txt"

This is not how you find a file across the entire system, you use plocate for that. find would take ages to do what plocate does instantly


Replies

Nuxtoday at 5:36 AM

Yes and no, with `find` I know I'm getting "live" results from the filesystem, whereas plocate (and s/locate) merely searches through a database updated god knows when, assuming it's even installed and the bulk of the files indexed.

gib444today at 6:59 AM

No. "Slower" is not the same as "different functionality".

In fact, "find" is guaranteed to be more correct. And more widely available.