The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
 

updatedb - Update the Search Database






The updatedb command is used to update the located atabase, which is typically located at "/var/lib/mlocate/mlocate.db" . The locate database is an index of all available files on the system. The basic syntax for the updatedb command is as follows:
pdatedb [OPTIONS] .

Some common options for the updatedb command include:


The format and rules for creating the database with the updatedb command are determined by the configuration file "/etc/updatedb.conf". You can find more information on the configuration file and related locate commands in the provided link.