{"id":760,"date":"2019-04-17T20:37:46","date_gmt":"2019-04-17T12:37:46","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=760"},"modified":"2019-04-23T22:20:58","modified_gmt":"2019-04-23T14:20:58","slug":"cksum","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/cksum","title":{"rendered":"cksum\u547d\u4ee4 – \u6821\u9a8c\u6587\u4ef6"},"content":{"rendered":"\n

cksum\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u6587\u4ef6\u7684CRC\u662f\u5426\u6b63\u786e\uff0c \u786e\u4fdd\u6587\u4ef6\u4ece\u4e00\u4e2a\u7cfb\u7edf\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u7cfb\u7edf\u7684\u8fc7\u7a0b\u4e2d\u7684\u6b63\u786e\u6027 \u3002\u5faa\u73af\u5197\u4f59\u6821\u9a8c\u6cd5 \uff08 CRC \uff09\u662f\u4e00\u79cd\u6392\u9519\u68c0\u67e5\u65b9\u5f0f\uff0c\u8be5\u6821\u9a8c\u6cd5\u7684\u6807\u51c6\u7531CCITT\u6240\u6307\u5b9a\uff0c\u81f3\u5c11\u53ef\u68c0\u6d4b\u523099.998%\u7684\u5df2\u77e5\u9519\u8bef\u3002<\/p>\n\n\n\n

\u8fd9\u79cd\u65b9\u6cd5\u8981\u6c42\u6821\u9a8c\u548c\u5728\u6e90\u7cfb\u7edf\u548c\u76ee\u7684\u7cfb\u7edf\u4e2d\u5206\u522b\u88ab\u8ba1\u7b97\u51fa\u6765\uff0c\u4e4b\u540e\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u6821\u9a8c\u548c\u76f8\u7b49\uff0c\u5219\u8ba4\u4e3a\u8be5\u6587\u4ef6\u4f20\u8f93\u6b63\u786e\u3002\u82e5\u4e0d\u6307\u5b9a\u4efb\u4f55\u6587\u4ef6\u540d\u79f0\u6216\u662f\u6240\u7ed9\u4e88\u7684\u6587\u4ef6\u540d\u4e3a”-“\uff0c\u5219\u6307\u4ee4”cksum”\u4f1a\u4ece\u6807\u51c6\u8f93\u5165\u8bbe\u5907\u4e2d\u8bfb\u53d6\u6570\u636e\u3002 <\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a\ufeff<\/strong><\/p>\n\n\n\n
--help<\/td>\u5728\u7ebf\u5e2e\u52a9<\/td><\/tr>
--version<\/td>\u663e\u793a\u7248\u672c\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u8ba1\u7b97\u6587\u4ef6\u201ctempfile\u201d\u7684\u5b8c\u6574\u6027\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# cksum tempfile
4294967295 0 tempfile<\/pre>\n\n\n\n

\u6ce8\uff1a\u201c4294967295\u201d\u8868\u793a\u6821\u9a8c\u7801\uff0c\u201c0\u201d\u8868\u793a\u5b57\u8282\u6570\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

cksum\u547d\u4ee4\u7528\u4e8e\u68c0\u67e5\u6587\u4ef6\u7684CRC\u662f\u5426\u6b63\u786e\uff0c \u786e\u4fdd\u6587\u4ef6\u4ece\u4e00\u4e2a\u7cfb\u7edf\u4f20\u8f93\u5230\u53e6\u4e00\u4e2a\u7cfb\u7edf\u7684\u8fc7\u7a0b\u4e2d\u7684\u6b63\u786e\u6027 \u3002\u5faa\u73af\u5197\u4f59\u6821 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/760"}],"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=760"}],"version-history":[{"count":7,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/760\/revisions"}],"predecessor-version":[{"id":1124,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/760\/revisions\/1124"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}