From d0dc4ed9de8de9848eafcafd0e2ab5426d82bb36 Mon Sep 17 00:00:00 2001 From: Kristopher Date: Sun, 27 Jul 2025 10:59:56 -0700 Subject: [PATCH] slocate: add page (#17237) Co-authored-by: Wiktor Perskawiec Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> --- pages/common/slocate.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pages/common/slocate.md diff --git a/pages/common/slocate.md b/pages/common/slocate.md new file mode 100644 index 0000000000..7db78cc2de --- /dev/null +++ b/pages/common/slocate.md @@ -0,0 +1,37 @@ +# slocate + +> Secure variant of GNU Locate. +> See also: `locate`. +> More information: . + +- 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}}`