{"id":830,"date":"2011-10-17T14:30:47","date_gmt":"2011-10-17T19:30:47","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=830"},"modified":"2011-10-17T14:30:47","modified_gmt":"2011-10-17T19:30:47","slug":"find-files-ubuntu-cli","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2011\/10\/find-files-ubuntu-cli\/","title":{"rendered":"Find Files Ubuntu CLI"},"content":{"rendered":"<p>I don&#8217;t forget this, but I do have to teach people from time to time.  Easiest way I know:<br \/>\nfind \/ | grep FILENAMEYOUWANTTOFIND<\/p>\n<p>so<br \/>\nfind \/ | grep index.php<\/p>\n<p>To find a file with certain words in the file:<br \/>\ngrep -r &#8216;word or words you want to find&#8217; \/path\/to\/files\/<br \/>\ngrep -r &#8216;<html>&#8216; \/var\/www\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t forget this, but I do have to teach people from time to time. Easiest way I know: find \/ | grep FILENAMEYOUWANTTOFIND so find \/ | grep index.php To find a file with certain words in the file: grep -r &#8216;word or words you want to find&#8217; \/path\/to\/files\/ grep -r &#8216;&#8216; \/var\/www\/<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-830","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=830"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/830\/revisions"}],"predecessor-version":[{"id":831,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/830\/revisions\/831"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}