- High speed and low impact searching command.
- Searches index instead of actual system.
- Indexes are updated each day end by default.
- Locate won’t know about recently added/deleted files util database is rebuilt.
Update locate database indexes
Count of the files using locate
locate -c <file name>
Ignore case in locate
locate -i <file_name>
Show only the file actually exist on file system and not only in db indexes
locate -e <file_name>
Limit output to Number of files to be viewed in result
locate -l 2 <file_name>
You can use less command to scroll over the result
locate <file_name> | less