{"id":195,"date":"2009-10-06T17:27:14","date_gmt":"2009-10-06T21:27:14","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=195"},"modified":"2013-03-20T08:40:08","modified_gmt":"2013-03-20T12:40:08","slug":"bash-locate-command-not-found","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/bash-locate-command-not-found","title":{"rendered":"-bash: locate: command not found"},"content":{"rendered":"<p><strong>&#8220;locate&#8221; command is use to index and quickly search for files on your system<\/strong>. If you receive the error message<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>-bash: locate: command not found<\/strong><\/span><\/p><\/blockquote>\n<p>which indicates that the package &#8220;slocate&#8221; isn&#8217;t installed on your server. First check the output of<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>rpm -qa | grep slocate<\/strong><\/span><\/p><\/blockquote>\n<p>if you don&#8217;t see any output it states that &#8220;slocate&#8221; is not installed on your server. You should be able to install slocate using<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>yum install slocate <\/strong><\/span><\/p><\/blockquote>\n<p>as root. Once installed, <strong>execute &#8220;updatedb&#8221; to keep the database up-to-date<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;locate&#8221; command is use to index and quickly search for files on your system. If you receive the error message<br \/>\n-bash: locate: command not found<br \/>\nwhich indicates that the package &#8220;slocate&#8221; isn&#8217;t installed on your server. First check the output of<br \/>\nrpm -qa | grep slocate<br \/>\nif you don&#8217;t see any output it states that &#8220;slocate&#8221; is not installed on your server. You should be able to install slocate using<br \/>\nyum install slocate<br \/>\nas root. Once installed, execute &#8220;updatedb&#8221; to keep the database up-to-date.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[214,215,210,213,211,212],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/195"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":3,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/195\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}