{"id":1301,"date":"2017-01-20T23:18:31","date_gmt":"2017-01-20T23:18:31","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=1301"},"modified":"2017-01-21T10:23:21","modified_gmt":"2017-01-21T10:23:21","slug":"linux-find-files-modified-within-x-minutes","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=1301","title":{"rendered":"Linux &#8211; find files modified within &#8220;x&#8221; minutes"},"content":{"rendered":"<p>Use find with mtime to search a set number of days<\/p>\n<pre>find -type f -mtime -10<\/pre>\n<p>where -10 is the amount of time (days) to search.<\/p>\n<p>eg, find all files modified within 2 days<\/p>\n<pre>find -type f -mtime -2<\/pre>\n<p>Use find with mmin to search for files modified within a set number of minutes<\/p>\n<pre>find -type f -mmin -10<\/pre>\n<p>where -10 is the amount of time (minutes) to search.<\/p>\n<p>eg, find all files modified within 90 minutes<\/p>\n<pre>find -type f -mmin -90<\/pre>\n<p>As this is the find command it will search within the current directory and subsequent sub directories<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use find with mtime to search a set number of days find -type f -mtime -10 where -10 is the amount of time (days) to search. eg, find all files modified within 2 days find -type f -mtime -2 Use find with mmin to search for files modified within a set number of minutes find [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[315],"class_list":["post-1301","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-find-files"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1301","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1301"}],"version-history":[{"count":5,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1301\/revisions"}],"predecessor-version":[{"id":1306,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1301\/revisions\/1306"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}