How to Install locate in Linux
Locate is very useful command to find the location of file/folder in linux.
Install mlocate package
# yum install mlocate
Update database by executing updatedb command
Now, locate any file/folder using “locate” command
# locate httpd /etc/httpd /etc/httpd/conf /etc/httpd/conf.d /etc/httpd/conf.modules.d /etc/httpd/logs /etc/httpd/modules /etc/httpd/run /etc/httpd/conf/httpd.conf /etc/httpd/conf/magic /etc/httpd/conf.d/README /usr/sbin/httpd /usr/share/httpd /usr/share/doc/httpd-2.4.6 /usr/share/doc/httpd-tools-2.4.6 /var/cache/httpd /var/cache/httpd/proxy /var/log/httpd /var/log/httpd/access_log /var/log/httpd/error_log