Linux系统自带16进制查看器:hd和hexdump,使用方法如下:
-> # cat test.c
#include<stdio.h>
int main(void){
printf("hello world");
reutrn 0;
}
-> # hexdump test.c
0000000 6923 636e 756c 6564 733c 6474 6f69 682e
0000010 0a3e 6e69 2074 616d 6e69 7628 696f 2964
0000020 0a7b 7009 6972 746e 2866 6822 6c65 6f6c
0000030 7720