Skip to content

slocate: add page #17237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions pages/common/slocate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# slocate

> Secure variant of GNU Locate.
> See also: `locate`.
> More information: <https://manned.org/slocate>.

- Enable quiet mode to suppress error messages:

`slocate -q`

- Limit the number of results shown:

`slocate -n {{number}}`

- Build an `slocate` database starting at path `/`:

`slocate -u`

- Build an `slocate` database starting at a given directory:

`slocate -U {{path/to/directory}}`

- Update an `slocate` database using the default `/etc/updatedb.conf` configuration:

`slocate -c`

- Set the security level of `slocate`, with `0` being disabled, and `1` being secure:

`slocate -l {{0|1}}`

- Specify the database that `slocate` should search in:

`slocate {{[-d|--database]}} {{path/to/directory}}`

- Search the `slocate` database using a specific `regex` string:

`slocate {{[-r|--regexp]}} {{regex}}`
Loading