Unlike find, locate not real-time search. You need to update the database to get the latest index information file

Unlike find, locate not real-time search. You need to update the database, index file to get the latest information.

Looking for a path string contains:

$updatedb

find a real-time look, if you need faster query, you can try locate; locate the file will be indexed database system, if there is a file update, you need to perform an update command to update the index database on a regular basis:

$locate string

Guess you like

Origin www.cnblogs.com/xuanbjut/p/11668393.html