Linux file search command _locate

Locate

Locate the file name
in the background database search for file names
Pros: search faster and consume fewer resources
Disadvantage: only in accordance with the file name search

/ var / lib / mlocate
in the background locate command searches the database

updatedb
updates the database

/etc/updatedb.conf profile
# 1. open search restrictions, yes open, no not open
PRUNE_BIND_MOUNTS = "yes"

# 2. When searching, searching file systems
PRUNEFS =

# 3. When the search does not search file types
PRUNENAMES =

# 4. When the search path is not searched
PRUNEPATHS =

Guess you like

Origin www.cnblogs.com/helloworld123/p/11440227.html