﻿{"id":4155,"date":"2020-11-22T18:56:20","date_gmt":"2020-11-22T10:56:20","guid":{"rendered":"https:\/\/www.linuxmi.com\/?p=4155"},"modified":"2020-11-22T19:02:21","modified_gmt":"2020-11-22T11:02:21","slug":"linux-minling-baocun","status":"publish","type":"post","link":"https:\/\/www.linuxmi.com\/linux-minling-baocun.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u4e2d\u5c06\u547d\u4ee4\u8f93\u51fa\u4fdd\u5b58\u5230\u6587\u4ef6"},"content":{"rendered":"<p>\u5728Linux\u4e2d\u8f93\u51fa\u547d\u4ee4\u53ef\u4ee5\u505a\u5f88\u591a\u4e8b\u60c5\u3002 \u60a8\u53ef\u4ee5\u5c06\u547d\u4ee4\u7684\u8f93\u51fa\u5206\u914d\u7ed9\u53d8\u91cf\uff0c\u5c06\u5176\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u547d\u4ee4\/\u7a0b\u5e8f\u4ee5\u901a\u8fc7\u7ba1\u9053\u8fdb\u884c\u5904\u7406\u6216\u5c06\u5176\u91cd\u5b9a\u5411\u5230\u6587\u4ef6\u4ee5\u8fdb\u884c\u8fdb\u4e00\u6b65\u5206\u6790\u3002<\/p>\n<p>\u5728\u8fd9\u7bc7\u7b80\u77ed\u7684\u6587\u7ae0\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u5c55\u793a\u4e00\u4e2a\u7b80\u5355\u4f46\u6709\u7528\u7684\u547d\u4ee4\u884c\u6280\u5de7\uff1a\u5982\u4f55\u5728\u5c4f\u5e55\u4e0a\u67e5\u770b\u547d\u4ee4\u7684\u8f93\u51fa\u4ee5\u53ca\u5728Linux\u4e2d\u5199\u5165\u6587\u4ef6\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ df<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4156 aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2020\/11\/df-1.png\" alt=\"\" width=\"946\" height=\"653\" \/><\/p>\n<p style=\"text-align: center;\">\u5728\u5c4f\u5e55\u4e0a\u67e5\u770b\u8f93\u51fa\u5e76\u5199\u5165\u6587\u4ef6<\/p>\n<p>\u5047\u8bbe\u60a8\u60f3\u8981\u83b7\u5f97Linux\u7cfb\u7edf\u4e0a\u6587\u4ef6\u7cfb\u7edf\u7684\u53ef\u7528\u548c\u5df2\u7528\u78c1\u76d8\u7a7a\u95f4\u7684\u5b8c\u6574\u6458\u8981\uff0c\u53ef\u4ee5\u4f7f\u7528df\u547d\u4ee4; \u5b83\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u60a8\u786e\u5b9a\u5206\u533a\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3002<\/p>\n<p>\u4f7f\u7528-h\u6807\u5fd7\uff0c\u60a8\u53ef\u4ee5\u901a\u4fd7\u6613\u61c2\u7684\u683c\u5f0f\u663e\u793a\u6587\u4ef6\u7cfb\u7edf\u78c1\u76d8\u7a7a\u95f4\u7edf\u8ba1\u4fe1\u606f(\u4ee5\u5b57\u8282\u3001\u5146\u5b57\u8282\u548c\u5343\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\u663e\u793a\u7edf\u8ba1\u4fe1\u606f\u7684\u8be6\u7ec6\u4fe1\u606f)\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ df -h<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4157 size-full\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2020\/11\/df-2.png\" alt=\"\" width=\"946\" height=\"653\" \/><\/p>\n<p>\u73b0\u5728\uff0c\u8981\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u4e0a\u8ff0\u4fe1\u606f\u5e76\u5c06\u5176\u5199\u5165\u6587\u4ef6\uff0c\u6bd4\u5982\u4ee5\u540e\u8fdb\u884c\u5206\u6790\u548c\/\u6216\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u7ed9\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u8bf7\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ df -h | tee linuxmi.com.log<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4158 size-full aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2020\/11\/df-3.png\" alt=\"\" width=\"946\" height=\"653\" \/><br \/>\nlinuxmi@linuxmi:~\/www.linuxmi.com$ cat linuxmi.com.log<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4159 size-full aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2020\/11\/df-4.png\" alt=\"\" width=\"946\" height=\"653\" \/><\/p>\n<p>\u8fd9\u91cc\uff0c\u7531tee\u547d\u4ee4\u5b8c\u6210\uff0c\u5b83\u4ece\u6807\u51c6\u8f93\u5165\u8bfb\u53d6\u5e76\u5199\u5165\u6807\u51c6\u8f93\u51fa\u4ee5\u53ca\u6587\u4ef6\u3002<\/p>\n<p>\u5982\u679c\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528-a\u6216&#8211;append\u9009\u9879\u9644\u52a0\u5b83\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ df -h | tee -a linuxmi.com.log<\/p>\n<p>\u6ce8\u610f\uff1a\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528pydf\u66ff\u4ee3\u201cdf\u201d\u547d\u4ee4\u6765\u68c0\u67e5\u4e0d\u540c\u989c\u8272\u7684\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ pydf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4160 size-full aligncenter\" src=\"https:\/\/www.linuxmi.com\/wp-content\/uploads\/2020\/11\/df-5.png\" alt=\"\" width=\"946\" height=\"653\" \/><\/p>\n<p>\u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u9605\u8bfbdf\u548ctee\u624b\u518c\u9875\u3002<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ man df<\/p>\n<p>linuxmi@linuxmi:~\/www.linuxmi.com$ man tee<\/p>\n<p>\u5728\u8fd9\u7bc7\u7b80\u77ed\u7684\u6587\u7ae0\u4e2d\uff0c\u6211\u5411\u60a8\u5c55\u793a\u4e86\u5982\u4f55\u5728\u5c4f\u5e55\u4e0a\u67e5\u770b\u547d\u4ee4\u7684\u8f93\u51fa\u4ee5\u53ca\u5982\u4f55\u5728Linux\u4e2d\u5199\u5165\u6587\u4ef6\u3002 \u5982\u679c\u60a8\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5176\u4ed6\u60f3\u6cd5\u8981\u5206\u4eab\uff0c\u8bf7\u901a\u8fc7\u4e0b\u9762\u7684\u8bc4\u8bba\u90e8\u5206\u4e0e\u6211\u4eec\u53d6\u5f97\u8054\u7cfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u4e2d\u8f93\u51fa\u547d\u4ee4\u53ef\u4ee5\u505a\u5f88\u591a\u4e8b\u60c5\u3002 \u60a8\u53ef\u4ee5\u5c06\u547d\u4ee4\u7684\u8f93\u51fa\u5206\u914d\u7ed9\u53d8\u91cf\uff0c\u5c06\u5176\u53d1\u9001\u5230\u53e6\u4e00\u4e2a\u547d\u4ee4\/\u7a0b\u5e8f\u4ee5\u901a &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-4155","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"views":543,"_links":{"self":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/4155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/comments?post=4155"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/4155\/revisions"}],"predecessor-version":[{"id":4162,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/posts\/4155\/revisions\/4162"}],"wp:attachment":[{"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/media?parent=4155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/categories?post=4155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxmi.com\/wp-json\/wp\/v2\/tags?post=4155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}