linux 16进制 产看文件

原文链接: http://www.cnblogs.com/diegodu/p/4071336.html

hexdump - ascii, decimal, hexadecimal, octal dump
  查看十六机制的首选工具。
  -c 每单元以字节为单位,显示出对应的ASCII码
  -C 每单元以字节为单位,同时显示十六机制和ASCII码
  例:
[atom@localhost code]$ hexdump -c txtfile
0000000   t   h   e       q   u   i   c   k       f   o   x       j   u
0000010   m   p       o   v   e   r       l   a   z   y       d   o   g
0000020   s  \n                                                       
0000022

[atom@localhost code]$ hexdump -C txtfile
00000000  74 68 65 20 71 75 69 63  6b 20 66 6f 78 20 6a 75  |the quick fox ju|
00000010  6d 70 20 6f 76 65 72 20  6c 61 7a 79 20 64 6f 67  |mp over lazy dog|
00000020  73 0a                                             |s.|
00000022

转载于:https://www.cnblogs.com/diegodu/p/4071336.html

猜你喜欢

转载自blog.csdn.net/weixin_30511107/article/details/94792858
今日推荐