{"id":231,"date":"2009-10-19T17:34:38","date_gmt":"2009-10-19T21:34:38","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=231"},"modified":"2013-03-20T08:41:11","modified_gmt":"2013-03-20T12:41:11","slug":"bash-locate-command-not-found-2","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/bash-locate-command-not-found-2","title":{"rendered":"-bash: locate: command not found"},"content":{"rendered":"<p><strong>Error Message:<\/strong><\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>[root@server ~]# locate filename<br \/>\n-bash: locate: command not found<\/strong><\/span><\/p><\/blockquote>\n<p>You may receive the above error message while searching a file using locate command and the error indicates that <strong>the package &#8220;slocate&#8221; required for the locate command<\/strong> is not installed. To install the package, execute:<\/p>\n<blockquote><p><strong><span style=\"color: #0000ff;\">yum -y install slocate<\/span><\/strong><\/p><\/blockquote>\n<p>You will now be able to use the locate command but before that, <strong>execute the command &#8220;updatedb&#8221; so that the locate database is updated<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error Message:<br \/>\n[root@server ~]# locate filename<br \/>\n-bash: locate: command not found<br \/>\nYou may receive the above error message while searching a file using locate command and the error indicates that the package &#8220;slocate&#8221; required for the locate command is not installed. To install the package, execute:<br \/>\nyum -y install slocate<br \/>\nYou will now be able to use the locate command but before that, execute the command &#8220;updatedb&#8221; so that the locate database is updated.<\/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":[260,262,265,261,264,263],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/231"}],"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=231"}],"version-history":[{"count":2,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":2156,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions\/2156"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}