Rebuild the locate database
medium risk
Walks the filesystem and rewrites the database used by locate. Normally run from cron daily.
| Flag | Meaning |
|---|---|
--prunepaths | Directories to skip |
sudo updatedbRefresh the locate index · explain & risk-check →Reference text is hand-written and may be incomplete — check man updatedb for your version. Test destructive commands on a non-production system first.