$ locate java
I received an error.
locate: database too small: /var/db/locate.database
So I ran
Got a message, complaining about permissions.
/usr/libexec/locate.updatedb: cannot create /var/db/locate.database: Permission denied
Okay. Run as sudo.
$ sudo /usr/libexec/locate.updatedb
I got a security warning.
Executing updatedb as root. This WILL reveal all filenames
on your machine to all login users, which is a security risk.
Unix is so much fun.
➥ What is the proper secure way to find a file or directory by name on your FreeBSD system?