“locate” command is use to index and quickly search for files on your system. If you receive the error message
-bash: locate: command not found
which indicates that the package “slocate” isn’t installed on your server. First check the output of
rpm -qa | grep slocate
if you don’t see any output it states that “slocate” is not installed on your server. You should be able to install slocate using
yum install slocate
as root. Once installed, execute “updatedb” to keep the database up-to-date.
Comments are closed.