Secure locate project can be used as a secure way to index and quickly search for files on your system.
It uses incremental encoding just like GNU locate to compress its database to make searching faster, but it will also check file permissions and ownership so that users will not see files they do not have access to.
-u - Create slocate database starting at path /.
-U < dir > - Create slocate database starting at path < dir >.
-e < dir1,dir2,... > - Exclude directories from slocate database.
-f < fstype1,... > - Exclude files on specified file system types from
the slocate database.
-c - Force slocate to parse '/etc/updatedb.conf' when updating the database.
-l <  > - Security level. 0 turns security checks off. This will make searchs faster. 1 turns security checks on. This is the default.
-q - Quite mode. Error messages are suppressed.
-n < num > - Limit the amount of results shown to < num >.
-i - Does a case insensitive search.
-r < regexp >
--regexp=< regexp > - Search the database using a basic POSIX regular expression.
-o < file >
--output=< file > - Specfies the database to create.
-d < path >
--database=path - Specfies path of database to search in.
--help - Display this help.
--verbose - Verbose mode. Display files when creating database.
--version - Display version.
What's New in This Release:
· The list of user defined database paths were not being parsed correctly and has been fixed.