mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 23:15:33 +02:00
slocate: add page (#17237)
Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc> Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
parent
38d9554e21
commit
d0dc4ed9de
1 changed files with 37 additions and 0 deletions
37
pages/common/slocate.md
Normal file
37
pages/common/slocate.md
Normal file
|
@ -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…
Add table
Reference in a new issue