Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

updatedb

Update locate database

Syntax

updatedb [OPTION]...

Common Options

-eExclude directories
-USpecify scan root
-oSpecify output file
-lSet security level
--prune pathsPrune paths

Common Examples

sudo updatedb

Update file database

sudo updatedb -e /tmp,/proc

Exclude temp directories

sudo updatedb -U /home

Scan home only

sudo updatedb -o /tmp/db

Output to file

Related Commands

Related Tools

More Code & Dev Tools