分享

vi下以16进制来查看二进制文件

 豆芽爱尚阅 2015-06-18

在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.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多