hexdump命令

跳过64字节后显示64字节

[root@ubuntu0006:/home] #hexdump -C -s 64 -n 64 ff83de8c766fc0daa15e45bcbf961f64
00000040  0e 1f ba 0e 00 b4 09 cd  21 b8 01 4c cd 21 54 68  |........!..L.!Th|
00000050  69 73 20 70 72 6f 67 72  61 6d 20 63 61 6e 6e 6f  |is program canno|
00000060  74 20 62 65 20 72 75 6e  20 69 6e 20 44 4f 53 20  |t be run in DOS |
00000070  6d 6f 64 65 2e 0d 0d 0a  24 00 00 00 00 00 00 00  |mode....$.......|
00000080

C参数

[root@ubuntu0006:/home] #hexdump -s 64 -n 64 ff83de8c766fc0daa15e45bcbf961f64
0000040 1f0e 0eba b400 cd09 b821 4c01 21cd 6854
0000050 7369 7020 6f72 7267 6d61 6320 6e61 6f6e
0000060 2074 6562 7220 6e75 6920 206e 4f44 2053
0000070 6f6d 6564 0d2e 0a0d 0024 0000 0000 0000
0000080

格式化输出

[root@ubuntu0006:/home] #hexdump -e '16/1 "%02x " "\n"' -n 64 ff83de8c766fc0daa15e45bcbf961f64
4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00
b8 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 f8 00 00 00

hd命令

[root@ubuntu0006:/home] #hd ff83de8c766fc0daa15e45bcbf961f64 -n 64
00000000  4d 5a 90 00 03 00 00 00  04 00 00 00 ff ff 00 00  |MZ..............|
00000010  b8 00 00 00 00 00 00 00  40 00 00 00 00 00 00 00  |........@.......|
00000020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 f8 00 00 00  |................|
00000040

od命令

[root@ubuntu0006:/home] #od ff83de8c766fc0daa15e45bcbf961f64 -N 64
0000000 055115 000220 000003 000000 000004 000000 177777 000000
0000020 000270 000000 000000 000000 000100 000000 000000 000000
0000040 000000 000000 000000 000000 000000 000000 000000 000000
0000060 000000 000000 000000 000000 000000 000000 000370 000000
0000100

results matching ""

    No results matching ""