Looks like this is an oddity of hexdump(1)
. Using xxd(1)
, I get...
$ xxd 123.bin
0000000: 0000 0001 ....
...which looks correct.
Looks like you have to use the -C
option to get hexdump(1)
to output in a sane format...
$ hexdump -C 123.bin
00000000 00 00 00 01 |....|
00000004
...or call it as hd
instead.