locate
Linux · System · available in the simulator
What it does
Find files by name using an indexed database, much faster than find.
Syntax
locate [opciones] patrón
Options and parameters
-iIgnore case distinctions.
-nLimit the number of displayed results.
locate -n 10 passwd-cPrint only the number of matching entries.
-rInterpret pattern as a regular expression.
Usage examples
locate -n 10 passwd
Notes and common mistakes
- Queries a database updated by updatedb, so results may be outdated.