One of the best tools for quickly finding files by filename is the locate command. The locate command reads one or more databases prepared by updatedb and writes file names matching at least one of the patterns to standard output, one per line.
- These instructions are intended specifically for installing mlocate on Fedora 21.
- I’ll be working from a Liquid Web Self Managed Fedora 21 server, and I’ll be logged in as root.
As a matter of best practice we’ll update our packages:
yum -y update
Then let’s install mlocate and any required packages:
yum -y install mlocate
The following command will update the search databases:
updatedb
mlocate installs a cron job that will run daily to update search databases at:
/etc/cron.daily/mlocate.cron
Related Articles:
![Avatar for J. Mays](/static/b9bfb850e038ebe4b3c49dd278744eee/9ca7a/b0da076b6e8552394da33fe3381a19fc.png)
About the Author: J. Mays
As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.
Latest Articles
How to install PyTorch on Linux (AlmaLinux)
Read ArticleInnovative armor — exploring ThreatDown’s impact on cyber defense
Read ArticleControlling PHP settings with a custom php.ini file
Read ArticleLinux dos2unix command syntax — removing hidden Windows characters from files
Read ArticleChange cPanel password from WebHost Manager (WHM)
Read Article