mdfind and locate are both CLIs for searching files on Mac. mdfind uses the Mac's spotlight index for searching while locate uses its own. To manually update locate's index you need to run
/usr/libexec/locate.updatedb
. If you have used both, how do they compare, is one better than the other?