{"id":2628,"date":"2015-12-04T19:06:01","date_gmt":"2015-12-04T17:06:01","guid":{"rendered":"http:\/\/www.final-memory.org\/?p=2628"},"modified":"2015-12-04T19:06:01","modified_gmt":"2015-12-04T17:06:01","slug":"classic-hexdump-of-files-with-the-gnu-coreutils","status":"publish","type":"post","link":"https:\/\/www.final-memory.org\/?p=2628","title":{"rendered":"Classic hexdump of files with the GNU Coreutils"},"content":{"rendered":"<p>Sometimes I&#8217;m in need of having a classic hexdump from a given binary file.<br \/>\nAs there is no obvious command under Linux, all seem to require more or less long command line options to work, I have to note down the standard solution using the od tool provided by the GNU Coreutils.<\/p>\n<p><code> od -w16 -A x -t x1z -v &lt;filename&gt;<br \/>\n<\/code><\/p>\n<p>This gives an output like this:<br \/>\n<code>000000 00 00 00 05 00 00 aa 00 00 bb 00 00 cc 00 00 00 \u00a0&gt;................&lt;<br \/>\n000010 00 00 ee ee dd ff 00 00 44 00 00 44 84 cd ab fe \u00a0&gt;........D..D....&lt;<br \/>\n000020<\/code><\/p>\n<div>I did not find out how to remove the final address without having to use grep or sed.<\/div>\n<p>The tool has a manual page and I recommend having a simple alias in your .bashrc like this:<\/p>\n<p><code>alias dump='od -w16 -A x -t x1z -v'<\/code><\/p>\n<div id=\"facebook_like\"><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.final-memory.org%2F%3Fp%3D2628&amp;layout=standard&amp;show_faces=true&amp;width=500&amp;action=like&amp;font=segoe+ui&amp;colorscheme=light&amp;height=80\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:500px; height:80px;\" allowTransparency=\"true\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Sometimes I&#8217;m in need of having a classic hexdump from a given binary file. As there is no obvious command under Linux, all seem to require more or less long command line options to work, I have to note down the standard solution using the od tool provided by the GNU Coreutils. od -w16 -A &hellip; <a href=\"https:\/\/www.final-memory.org\/?p=2628\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Classic hexdump of files with the GNU Coreutils&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,25,24],"tags":[],"class_list":["post-2628","post","type-post","status-publish","format-standard","hentry","category-asm-software","category-it","category-linux"],"_links":{"self":[{"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/posts\/2628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2628"}],"version-history":[{"count":2,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/posts\/2628\/revisions"}],"predecessor-version":[{"id":2630,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=\/wp\/v2\/posts\/2628\/revisions\/2630"}],"wp:attachment":[{"href":"https:\/\/www.final-memory.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.final-memory.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}