carta
locate.mklocatedb(8)

locate.mklocatedb8

Create locate database

Usage

locate.mklocatedb [-presort]

Overview

locate.mklocatedb reads a list of filenames (one per line) from standard input and creates a database usable by locate(1) on standard output. It is typically run by locate.updatedb(8), but it can be used independently to generate a database from any list of paths.

The options are as follows:

-presort

Assume the input list is already sorted.

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.