Linux下查看16进制文件

版权声明:heibao111728 https://blog.csdn.net/heibao111728/article/details/84060608

在vim中查看

:%!xxd -g 1 表示每1个字节为1组
:%!xxd -g 2 表示每2个字节为1组(默认)
:%!xxd -g 4 表示每4个字节为1组
:%!xxd -r    将vim恢复成原来的显示

示例:"vim rtpreciver_tmp1.ps"---->":%!xxd -g 1",效果如下:

命令查看(hexdump )

hexdump -C rtpreciver_tmp1.ps | more //查看rtpreciver_tmp1.ps文件的16进制格式,效果图如下:

猜你喜欢

转载自blog.csdn.net/heibao111728/article/details/84060608
今日推荐