<div dir="ltr">The default behaviour of hexdump is to align data word-wide. For instance<div><br></div><div> printf '\xFF\xFF\x01' | hexdump</div><div> 0000000 ffff 0001</div><div><div> 0000003</div></div>
<div><br></div><div>This makes little sense to me. In C, structs are not necessarily aligned to words, and it doesn't seems useful to view about any data format for which you're sure everything is word-aligned. The "hexdump -C" behaviour makes much more sense in the general case.</div>
<div><br></div><div><div> printf '\xFA\xFB\x01' | hexdump -C</div><div> 00000000 fa fb 01 |...|</div><div> 00000003</div></div><div><br></div><div>No confusion.</div>
<div><br></div><div>I'm sure there was a reason for that, but I can't think about one.</div><div><br></div><div>(I apologize for the slightly off-topic post)</div><div><br></div><div><br></div></div>