Hexdump Usage
hexdump -C -n 128 wr740nv4_en_3_16_6_up_boot(130529).bin | less
opts
-C # hex+ASCII display
-n length
-s offset
output
00000000 01 00 00 00 54 50 2d 4c 49 4e 4b 20 54 65 63 68 |....TP-LINK Tech|
00000010 6e 6f 6c 6f 67 69 65 73 00 00 00 00 76 65 72 2e |nologies....ver.|
00000020 20 31 2e 30 00 00 00 00 00 00 00 00 00 00 00 00 | 1.0............|
00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 07 40 00 04 00 00 00 01 00 00 00 00 3f df 17 e0 |.@..........?...|
00000050 dd 25 a9 6b e8 62 53 bc 19 05 5b b5 00 00 00 00 |.%.k.bS...[.....|
00000060 33 1d 49 c2 f8 8e 92 03 1f fc ac 70 30 73 1e 6b |3.I........p0s.k|
00000070 00 00 00 00 80 00 20 00 80 1d 6c 50 00 3e 02 00 |...... ...lP.>..|
00000080 00 00 02 00 00 0d a3 18 00 10 00 00 00 2c 00 00 |.............,..|
00000090 00 00 00 00 00 00 c1 55 00 03 00 10 00 06 00 00 |.......U........|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000200 10 00 00 ff 00 00 00 00 10 00 00 fd 00 00 00 00 |................|
00000210 10 00 01 8e 00 00 00 00 10 00 01 8c 00 00 00 00 |................|
00000220 10 00 01 8a 00 00 00 00 10 00 01 88 00 00 00 00 |................|
Address
* 左手邊的是 address
echo -n 0123456789 > test.txt
hexdump -C test.txt
00000000 30 31 32 33 34 35 36 37 38 39 |0123456789|
0000000a
當有 10 個字時, 下一行就 0000000a
* 每格 2^8 bit (0~255) = 1 byte
* 每行 16 bytes
Other