Options (2)
-d, --databasebooleanSpecify the database that `slocate` should search in
Example:
slocate {{[-d|--database]}} {{path/to/directory}}-r, --regexpbooleanSearch the `slocate` database using a specific `regex` string
Example:
slocate {{[-r|--regexp]}} {{regex}}Examples (8)
Enable quiet mode to suppress error messages
slocate -qLimit the number of results shown
slocate -n numberBuild an `slocate` database starting at path `/`
slocate -uBuild an `slocate` database starting at a given directory
slocate -U path/to/directoryUpdate an `slocate` database using the default `/etc/updatedb.conf` configuration
slocate -cSet the security level of `slocate`, with `0` being disabled, and `1` being secure
slocate -l 0|1Specify the database that `slocate` should search in
slocate [-d|--database] path/to/directorymade by @shridhargupta | data from tldr-pages