I think dd if=your_file ibs=2 count=1 will do the trick
Looking at this with the strace show, it effectively makes two bytes read from a file. The following is an example of reading from / dev / zero and sent to hd to display a null value:
dd if=/dev/zero bs=2 count=1 | hd 1+0 enregistrements lus 1+0 enregistrements écrits 2 octets (2 B) copiés, 2,8497e-05 s, 70,2 kB/s 00000000 00 00 |..| 00000002
shodanex
source share