Difference between revisions of "Mlocate"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
mlocate is a locate/updatedb implementation.  The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file
+
{{lc}}
system, which makes updatedb faster and does not trash the system caches as much.
+
<code>mlocate</code> is a locate/[[updatedb]] implementation.  The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much.
  
 +
* <code>[[apt install mlocate]]</code>
 +
* [[Amazon Linux]]: <code>[[yum install mlocate]]</code>
 +
* <code>[[mlocate --help]]</code>
  
[[apt install]] mlocate
 
  
 
+
<code>[[/etc/cron.daily/mlocate]]</code>
/etc/cron.daily/mlocate
 
 
 
 
 
usr/bin/mlocate --help
 
Usage: locate [OPTION]... [PATTERN]...
 
Search for entries in a mlocate database.
 
 
  -A, --all              only print entries that match all patterns
 
  -b, --basename        match only the base name of path names
 
  -c, --count            only print number of found entries
 
  -d, --database DBPATH  use DBPATH instead of default database (which is
 
                        /var/lib/mlocate/mlocate.db)
 
  -e, --existing        only print entries for currently existing files
 
  -L, --follow          follow trailing symbolic links when checking file
 
                        existence (default)
 
  -h, --help            print this help
 
  -i, --ignore-case      ignore case distinctions when matching patterns
 
  -p, --ignore-spaces    ignore punctuation and spaces when matching patterns
 
  -t, --transliterate    ignore accents using iconv transliteration when
 
                        matching patterns
 
  -l, --limit, -n LIMIT  limit output (or counting) to LIMIT entries
 
  -m, --mmap            ignored, for backward compatibility
 
  -P, --nofollow, -H    don't follow trailing symbolic links when checking file
 
                        existence
 
  -0, --null            separate entries with NUL on output
 
  -S, --statistics      don't search for entries, print statistics about each
 
                        used database
 
  -q, --quiet            report no error messages about reading databases
 
  -r, --regexp REGEXP    search for basic regexp REGEXP instead of patterns
 
      --regex            patterns are extended regexps
 
  -s, --stdio            ignored, for backward compatibility
 
  -V, --version          print version information
 
  -w, --wholename        match whole path name (default)
 
 
Report bugs to https://pagure.io/mlocate.
 
  
 
== Related terms ==
 
== Related terms ==
 
* [[Disk io]]
 
* [[Disk io]]
 
+
* [[updatedb.mlocate]]
  
 
== See also ==
 
== See also ==
 +
* {{mlocate}}
 
* {{locate}}
 
* {{locate}}
 
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 15:59, 1 February 2023

mlocate is a locate/updatedb implementation. The 'm' stands for "merging": updatedb reuses the existing database to avoid rereading most of the file system, which makes updatedb faster and does not trash the system caches as much.


/etc/cron.daily/mlocate

Related terms[edit]

See also[edit]

Advertising: