{"id":6798,"date":"2020-05-04T11:27:37","date_gmt":"2020-05-04T03:27:37","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6798"},"modified":"2020-05-04T11:27:37","modified_gmt":"2020-05-04T03:27:37","slug":"archive","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/archive","title":{"rendered":"archive\u547d\u4ee4 – \u65b0\u95fb\u7ec4\u6587\u4ef6\u5907\u5b58\u7a0b\u5e8f"},"content":{"rendered":"\n
archive\u4f1a\u8bfb\u53d6\u65b0\u95fb\u7ec4\u7684\u6587\u4ef6\uff0c\u7136\u540e\u52a0\u4ee5\u5907\u5b58\u3002archive\u5907\u5b58\u65f6\uff0c\u4f1a\u4fdd\u5b58[\u6e90\u6587\u4ef6]\u4e2d\u6587\u4ef6\u7684\u76ee\u5f55\u9636\u5c42\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>archive [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong> <\/p>\n\n\n\n \u6307\u5b9a\u76ee\u5f55\u8fdb\u884c\u5907\u4efd\uff1a<\/p>\n\n\n\n \u5c06\u6587\u4ef6\u5173\u8054\u8d77\u6765\uff1a<\/p>\n\n\n\n \u53d6\u4ee3\u6587\u4ef6\uff1a<\/p>\n\n\n\n archive\u4f1a\u8bfb\u53d6\u65b0\u95fb\u7ec4\u7684\u6587\u4ef6\uff0c\u7136\u540e\u52a0\u4ee5\u5907\u5b58\u3002archive\u5907\u5b58\u65f6\uff0c\u4f1a\u4fdd\u5b58[\u6e90\u6587\u4ef6]\u4e2d\u6587\u4ef6\u7684\u76ee\u5f55\u9636\u5c42\u3002 \u8bed\u6cd5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6798"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6798"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6798\/revisions"}],"predecessor-version":[{"id":7389,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6798\/revisions\/7389"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-a<\u5907\u5b58\u76ee\u5f55> <\/td> \u6307\u5b9a\u5907\u5b58\u7684\u76ee\u5f55 <\/td><\/tr> -f<\/td> \u5c06\u9636\u5c42\u76ee\u5f55\u540d\u79f0\u7684\u9636\u5c42\u5173\u7cfb\u53d6\u6d88\uff0c\u4ee5\u53e5\u70b9\u6765\u53d6\u4ee3\u659c\u7ebf <\/td><\/tr> -i<\u7d22\u5f15\u6587\u4ef6>\u00a0 <\/td> \u5236\u4f5c\u6587\u4ef6\u7d22\u5f15 <\/td><\/tr> -m <\/td> \u5c06\u6587\u4ef6\u590d\u5236\u5230\u76ee\u7684\u5730\uff0c\u5efa\u7acb\u6587\u4ef6\u8fde\u63a5\u540e\uff0c\u4ee5\u8fde\u63a5\u53d6\u4ee3\u539f\u59cb\u7684\u6587\u4ef6 <\/td><\/tr> -r\u00a0\u00a0 <\/td> archive\u9884\u8bbe\u7684\u6807\u51c6\u9519\u8bef\u8f93\u51fa\u4e3a\/var\/errlog\uff0c-r\u53c2\u6570\u53ef\u53d6\u6d88\u6b64\u529f\u80fd <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# archive -a .\/linuxcool<\/pre>\n\n\n\n
[root@linuxcool ~]# archive -i test.txt<\/pre>\n\n\n\n
[root@linuxcool ~]# archive -m test.txt<\/pre>\n","protected":false},"excerpt":{"rendered":"