[Ilugc] One Day One GNU/Linux Command (UPDATEDB)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Fri Aug 1 09:44:54 2008

One Day One GNU/Linux Command
=============================

updatedb -- Update the locate DateBase

Summary :

locate command is doing the quick search by using the database
created by this updatedb command. Normally this command is run
by cron at some periodic interval to keep the DB upto date.

Example:

# updatedb -u -- Create DB starting at / (root).

# updatedb -U /home -- Create DB starting at /home

# updatedb -f vfat -- Don't update VFAT file system

# updatedb -e /proc,/tmp -- Don't update /proc and /tmp dirs

# updatedb -v -- Display all files indexed when creating DB

Read: man updatedb

HTH :)
--
Bharathi S

Other related posts:

  • » [Ilugc] One Day One GNU/Linux Command (UPDATEDB) - Bharathi Subramanian