{"id":1153,"date":"2019-04-25T12:21:38","date_gmt":"2019-04-25T04:21:38","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1153"},"modified":"2019-04-28T13:03:35","modified_gmt":"2019-04-28T05:03:35","slug":"sync","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sync","title":{"rendered":"sync\u547d\u4ee4 – \u5237\u65b0\u6587\u4ef6\u7cfb\u7edf\u7f13\u51b2\u533a"},"content":{"rendered":"\n

sync\u547d\u4ee4\u7528\u4e8e\u5f3a\u5236\u88ab\u6539\u53d8\u7684\u5185\u5bb9\u7acb\u523b\u5199\u5165\u78c1\u76d8\uff0c\u66f4\u65b0\u4fe1\u606f\u901f\u5ea6\u975e\u5e38\u5feb\uff0c \u5728Linux\/Unix\u7cfb\u7edf\u4e2d\uff0c\u5728\u6587\u4ef6\u6216\u6570\u636e\u5904\u7406\u8fc7\u7a0b\u4e2d\u4e00\u822c\u5148\u653e\u5230\u5185\u5b58\u7f13\u51b2\u533a\u4e2d\uff0c\u7b49\u5230\u9002\u5f53\u7684\u65f6\u5019\u518d\u5199\u5165\u78c1\u76d8\uff0c\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u7684\u8fd0\u884c\u6548\u7387\u3002<\/p>\n\n\n\n

sync\u547d\u4ee4\u5219\u53ef\u7528\u6765\u5f3a\u5236\u5c06\u5185\u5b58\u7f13\u51b2\u533a\u4e2d\u7684\u6570\u636e\u7acb\u5373\u5199\u5165\u78c1\u76d8\u4e2d\u3002\u7528\u6237\u901a\u5e38\u4e0d\u9700\u6267\u884csync\u547d\u4ee4\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u6267\u884cupdate\u6216bdflush\u64cd\u4f5c\uff0c\u5c06\u7f13\u51b2\u533a\u7684\u6570\u636e\u5199 \u5165\u78c1\u76d8\u3002\u53ea\u6709\u5728update\u6216bdflush\u65e0\u6cd5\u6267\u884c\u6216\u7528\u6237\u9700\u8981\u975e\u6b63\u5e38\u5173\u673a\u65f6\uff0c\u624d\u9700\u624b\u52a8\u6267\u884csync\u547d\u4ee4\u3002 <\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>sync [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
--help<\/td>\u663e\u793a\u547d\u5b9a\u8be6\u7ec6\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr>
--version<\/td>\u663e\u793a\u7248\u672c\u53f7<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u5e2e\u52a9\u4fe1\u606f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sync --help
Usage: sync [OPTION]
Force changed blocks to disk, update the super block.
--help display this help and exit
--version output version information and exit
GNU coreutils online help: <http:\/\/www.gnu.org\/software\/coreutils\/>
For complete documentation, run: info coreutils 'sync invocation'<\/pre>\n\n\n\n

\u663e\u793a\u7248\u672c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# sync --version
sync (coreutils) 8.22
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http:\/\/gnu.org\/licenses\/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Jim Meyering.<\/pre>\n","protected":false},"excerpt":{"rendered":"

sync\u547d\u4ee4\u7528\u4e8e\u5f3a\u5236\u88ab\u6539\u53d8\u7684\u5185\u5bb9\u7acb\u523b\u5199\u5165\u78c1\u76d8\uff0c\u66f4\u65b0\u4fe1\u606f\u901f\u5ea6\u975e\u5e38\u5feb\uff0c \u5728Linux\/Unix\u7cfb\u7edf\u4e2d\uff0c\u5728\u6587\u4ef6\u6216\u6570\u636e […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1153"}],"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=1153"}],"version-history":[{"count":12,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1153\/revisions"}],"predecessor-version":[{"id":1552,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1153\/revisions\/1552"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}