linux中的hexdump命令

来源:互联网 发布:网络投稿小说网站 编辑:程序博客网 时间:2024/06/05 04:42

       之前介绍过linux下的xxd命令, 现在说hexdump, 从含义来讲, 就是把文件中的hex   dump出来, 类似的有objdump, tcpdump,  我们来看看hexdump, 如下:

taoge@localhost Desktop> xxd test.cpp0000000: 766f 6964 2066 756e 2829 0a7b 0a09 696e  void fun().{..in0000010: 7420 6120 3d20 313b 0a7d 0a              t a = 1;.}.taoge@localhost Desktop> hexdump -C test.cpp00000000  76 6f 69 64 20 66 75 6e  28 29 0a 7b 0a 09 69 6e  |void fun().{..in|00000010  74 20 61 20 3d 20 31 3b  0a 7d 0a                 |t a = 1;.}.|0000001btaoge@localhost Desktop> 

      爽, 我们经常用的tcpdump也是这样哈!



0 0
原创粉丝点击