原帖地址,请查看:http://fanxh1983.blog.163.com/blog/static/35519721200891664823458/
用vi在linux下查看16进制文件的方法。
用法很简单:
在vi的命令状态下
:%!xxd ——将当前文本转换为16进制格式。
:%!od ——将当前文本转换为16进制格式。
:%!xxd -c 12——将当前文本转换为16进制格式,并每行显示12个字节。
:%!xxd -r ——将当前文件转换回文本格式。
xxd工具: xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binary form.
od工具: Write an unambiguous representation, octal bytes by default, of FILE to standard output. With more than one FILE argument, concatenate them in the listed order to form the input.
用vi在linux下查看16进制文件的方法
最新推荐文章于 2024-04-23 11:30:04 发布