find file locate

Non-real-time lookup (database lookup)

locate

The pre-built file index database on the query system is based on the database

   /var/lib/mlocate/mlocate.db

Relying on pre-built indexes

       The index construction is automatically performed when the system is relatively idle (periodic task), and the administrator manually updates the database (updatedb)

  The index building process needs to traverse the entire root file system, which consumes resources.

   Job Features

              Find fast

              Fuzzy lookup

              non-real-time lookup

              The full path of the file is searched, not just the file name

              May only search directories where the user has read and execute permissions

  usage

   locate filename

   Options   

        -i ignore case

        -n N only list the first N matching items

        -r use regular

 

         

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324589753&siteId=291194637