How to update locate database

On a macOS system “man” usage is a vital trick. If you “man locate” at the command line you will see this command below to update the locate database if needed;

sudo /usr/libexec/locate.updatedb