-d
-S
为某目录创建单独的数据库
updatedb -l 0 -o locate.db -U .
FreeBSD 上使用 /usr/libexec/locate.updatedb 。
/usr/libexec/locate.updatedb