how to use the locate command on a mac

note: i am a sysadm, therefore i am used to being gawd on my machines. so, of course, i want every file to show up in my locate database. if you are not familiar with all the security ramifications of such a practice, then go away and find out how dangerous it might be - ' before ' you do the following…

to update the locate database: * sudo /usr/libexec/locate.updatedb *

the locate database is: /var/db/locate.database