{"id":6582,"date":"2020-02-14T12:56:06","date_gmt":"2020-02-14T04:56:06","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6582"},"modified":"2020-02-14T12:56:07","modified_gmt":"2020-02-14T04:56:07","slug":"hexdump","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/hexdump","title":{"rendered":"hexdump – \u663e\u793a\u6587\u4ef6\u5341\u516d\u8fdb\u5236\u683c\u5f0f"},"content":{"rendered":"\n

hexdump\u662flinux\u4e0b\u7684\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u67e5\u770b\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e8c\u8fdb\u5236\u6587\u4ef6\u8f6c\u6362\u4e3aASCII\u3001\u516b\u8fdb\u5236\u3001\u5341\u8fdb\u5236\u3001\u5341\u516d\u8fdb\u5236\u683c\u5f0f\u8fdb\u884c\u67e5\u770b\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-n length<\/td>\u53ea\u683c\u5f0f\u5316\u8f93\u5165\u6587\u4ef6\u7684\u524dlength\u4e2a\u5b57\u8282<\/td><\/tr>
-C<\/td>\u8f93\u51fa\u89c4\u8303\u7684\u5341\u516d\u8fdb\u5236\u548cASCII\u7801<\/td><\/tr>
-b<\/td>\u5355\u5b57\u8282\u516b\u8fdb\u5236\u663e\u793a<\/td><\/tr>
-c <\/td>\u5355\u5b57\u8282\u5b57\u7b26\u663e\u793a<\/td><\/tr>
-d <\/td>\u53cc\u5b57\u8282\u5341\u8fdb\u5236\u663e\u793a<\/td><\/tr>
-o <\/td>\u53cc\u5b57\u8282\u516b\u8fdb\u5236\u663e\u793a<\/td><\/tr>
-x <\/td>\u53cc\u5b57\u8282\u5341\u516d\u8fdb\u5236\u663e\u793a<\/td><\/tr>
-s <\/td>\u4ece\u504f\u79fb\u91cf\u5f00\u59cb\u8f93\u51fa<\/td><\/tr>
-e <\/td>\u6307\u5b9a\u683c\u5f0f\u5b57\u7b26\u4e32\uff0c\u683c\u5f0f\u5b57\u7b26\u4e32\u5305\u542b\u5728\u4e00\u5bf9\u5355\u5f15\u53f7\u4e2d<\/td><\/tr>
-v<\/td>\u663e\u793a\u6240\u6709\u8f93\u5165\u6570\u636e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

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

\u67e5\u770b\u6d4b\u8bd5\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hexdump testfile<\/pre>\n\n\n\n

\u4ee5\u5b57\u8282\u65b9\u5f0f\u67e5\u770b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hexdump -C testfile -s skip -n number<\/pre>\n\n\n\n

\u4ee5\u5b57\u8282\u65b9\u5f0f\u67e5\u770b\u6240\u6709\u6587\u4ef6\u5185\u5bb9\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# hexdump -Cv testfile<\/pre>\n","protected":false},"excerpt":{"rendered":"

hexdump\u662flinux\u4e0b\u7684\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u67e5\u770b\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e8c\u8fdb\u5236\u6587\u4ef6\u8f6c\u6362\u4e3aASCII\u3001\u516b\u8fdb\u5236\u3001\u5341\u8fdb\u5236\u3001\u5341\u516d […]<\/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\/6582"}],"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=6582"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6582\/revisions"}],"predecessor-version":[{"id":6615,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6582\/revisions\/6615"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}