{"id":293,"date":"2013-02-03T15:48:13","date_gmt":"2013-02-03T15:48:13","guid":{"rendered":"https:\/\/shan.info\/new\/find-mtime-%e6%9f%a5%e6%89%be%e8%b7%9d%e5%bd%93%e5%89%8d%e6%97%b6%e9%97%b4n%e5%a4%a9%e4%bb%a5%e5%86%85%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6\/"},"modified":"2013-02-03T15:48:13","modified_gmt":"2013-02-03T15:48:13","slug":"find-mtime-%e6%9f%a5%e6%89%be%e8%b7%9d%e5%bd%93%e5%89%8d%e6%97%b6%e9%97%b4n%e5%a4%a9%e4%bb%a5%e5%86%85%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/shan.info\/new\/find-mtime-%e6%9f%a5%e6%89%be%e8%b7%9d%e5%bd%93%e5%89%8d%e6%97%b6%e9%97%b4n%e5%a4%a9%e4%bb%a5%e5%86%85%e4%bf%ae%e6%94%b9%e7%9a%84%e6%96%87%e4%bb%b6\/","title":{"rendered":"find mtime \u67e5\u627e\u8ddd\u5f53\u524d\u65f6\u95f4n\u5929\u4ee5\u5185\u4fee\u6539\u7684\u6587\u4ef6"},"content":{"rendered":"<p>\n\t<strong style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">find $PATH -mtime 0&nbsp; \u67e5\u627e\u8ddd\u5f53\u524d\u65f6\u95f424\u5c0f\u65f6\u4ee5\u5185\u4fee\u6539\u7684\u6587\u4ef6<\/strong><\/p>\n<p><br style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\" \/><\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;&nbsp;&nbsp;&nbsp; Search&nbsp; for&nbsp; files&nbsp; in&nbsp; your home directory which have been modified in the last twenty-four hours.&nbsp; This command works this way because the time since each file was last modified is divided by 24 hours and&nbsp; any remainder&nbsp; is&nbsp; discarded.&nbsp;&nbsp; That means that to match -mtime 0, a file will have to have a modification in the past which is less than 24 hours ago.<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t<strong style=\"margin: 0px; padding: 0px;\">find $PATH -mtime +n&nbsp; \u67e5\u627e\u8ddd\u5f53\u524d\u65f6\u95f4n\u5929\u4ee5\u5916\u4fee\u6539\u7684\u6587\u4ef6<\/strong><\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5982n=2 &nbsp; &nbsp; find $PATH -mtime +2&nbsp;<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5f53\u524d\u65f6\u95f411-10 10:00 \u90a3\u4e48\u5373\u4ece\u8ddd\u79bb\u5f53\u524d\u65f6\u95f4\uff082012-11-10 10:00\uff09\u76842\u5929\u524d\u5f00\u59cb\u7b97\u8d77 find $PATH -mtime +2\u8868\u793a11-07 10:00\u4e4b\u524d\u4fee\u6539\u8fc7\u7684\u6240\u6709\u6587\u4ef6\u90fd\u4f1a\u67e5\u627e\u51fa\u6765\uff0c\u5f80\u66f4\u65e9\u7684\u65f6\u95f4\u63a8\u79fb\uff0c\u5982\u5e95\u4e0b\u53c2\u8003\u9e1f\u54e5\u7684\u65f6\u95f4\u63a8\u79fb\u56fe\u7247<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t<strong style=\"margin: 0px; padding: 0px;\">find $PATH -mtime -n&nbsp; \u67e5\u627e\u8ddd\u5f53\u524d\u65f6\u95f4n\u5929\u4ee5\u5185\u4fee\u6539\u7684\u6587\u4ef6<\/strong><\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5982n=2 &nbsp; &nbsp; find $PATH -mtime -2 \u90a3\u4e48\u5373\u4ece\u8ddd\u79bb\u5f53\u524d\u65f6\u95f4\uff082012-11-10 10:00\uff09\u76842\u5929\u524d\u5f00\u59cb\u7b97\u8d77 find $PATH -mtime +2\u8868\u793a11-07 10:00\u4e4b\u5185\u4fee\u6539\u8fc7\u7684\u6240\u6709\u6587\u4ef6\u90fd\u4f1a\u67e5\u627e\u51fa\u6765\uff0c\u5f80\u73b0\u5728\u7684\u65f6\u95f4\u63a8\u79fb<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t<strong style=\"margin: 0px; padding: 0px;\">find $PATH&nbsp; -mtime n \u67e5\u8be2\u8ddd\u5f53\u524d\u65f6\u95f4n\u5929\u4e4b\u524d24\u5c0f\u65f6\u4ee5\u5185\u4fee\u6539\u7684\u6587\u4ef6<\/strong><\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t\u5982n=2 \u5f53\u524d\u65f6\u95f4\u4e3a2012-11-10 10\uff1a00\uff0c\u5f80\u524d\u63a82\u5929\u4e3a2012-11-07 10:00\uff0c\u56e0\u6b64\u4ee5\u6b64\u4e3a\u65f6\u95f4\u70b9\uff0c24\u5c0f\u65f6\u4e4b\u5185\u7684\u65f6\u95f4\u4e3a2012-11-07 10:00\uff5e2012-11-08 10:00 \u5185\u4fee\u6539\u7684\u6587\u4ef6\u90fd\u4f1a\u67e5\u627e\u51fa\u6765<\/p>\n<p style=\"margin: 0px; padding: 0px; font-family: Arial; font-size: 14px; line-height: 26px;\">\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>find $PATH -mtime 0&nbsp; \u67e5\u627e\u8ddd\u5f53\u524d\u65f6\u95f424\u5c0f\u65f6\u4ee5\u5185\u4fee\u6539\u7684\u6587\u4ef6 &nbsp;&nbsp;&nbsp;&nbsp; Search&nbsp; for&nbsp; files&nbsp; in&nbsp; your home directory which have been modified in the last twenty-four hours.&nbsp; This command works this way because the time since each file was last modified is divided by 24 hours and&nbsp; any remainder&nbsp; is&nbsp; discarded.&nbsp;&nbsp; That means that to match -mtime 0, a file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-centos-6"],"_links":{"self":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":0,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"wp:attachment":[{"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shan.info\/new\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}