This week I found out that hexdump(1) on Linux doesn't seem to work with bytes but with half-words. I found out because I compared a byte-by-byte binary dump (output of a separate program) to the output of hexdump(1) (dumping the same data) and noticed that hexdump(1)'s output always swapped two adjacent bytes.
Maybe I haven't found the right parameters, though.
1 comment:
Try "hexdump -C ..."
... or use xxd instead, which is IMHO a better tool for hex-dumping files.
Post a Comment