Exclude /media and /mnt from the paths updatedb scans when building the locate database.
Use the standard updatedb.conf setting.
Which setting matches this purpose?
PRUNEPATHS lists paths that updatedb should omit while building the database. PRUNEFS handles filesystem types.
Detailed explanation
Incorrect. PATH is a shell executable-search variable.
Correct. PRUNEPATHS defines directory paths omitted from the database scan.
Incorrect. MANPATH relates to manual-page lookup.
Incorrect. LD_LIBRARY_PATH affects dynamic-library lookup.
Try it yourself
An example you can run in a temporary verification environment.
grep -E '^[[:space:]]*PRUNEPATHS=' /etc/updatedb.conf 2>/dev/null || trueExpected result
設定ファイルがある環境ではPRUNEPATHSの行。読み取りのみKey points
- PRUNEPATHS excludes paths
- PRUNEFS excludes filesystem types
- Configuration affects updatedb
Notes
- Environment: Linux / mlocateまたは互換updatedb.conf / 読み取りのみ
- Use read-only lookups or disposable paths when verifying search behavior.
- Distribution-specific defaults should be checked before changing system configuration.
Foundation review
Place the operation
Path pruning controls the indexer's scan scope; it does not change command lookup or manual-page lookup.
Check the side effect
Confirm the variable names and defaults for the locate implementation installed on the host.