小编tan*_*non的帖子

hexdump 与 xxd 格式的区别

我正在寻找如何进行反向十六进制转储并发现提到了 xxd。但是,它似乎不能简单地使用:

xxd -r hexdumpfile > binaryfile
Run Code Online (Sandbox Code Playgroud)

然后我比较了xxd infile和 的输出之间的差异hexdump infile,发现了三个差异:

  1. xxd 输出地址后有一个冒号
  2. xxd 输出在数据中的位置颠倒了(例如,5a42在 hexdump 输出中变成425a在 xxd 输出中)
  3. 每行后面有一些额外的字符

我在服务器上只有某些文件的 hexdumped 版本。如何使用 xxd 正确取回二进制数据?

linux conversion xxd hexdump

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

conversion ×1

hexdump ×1

linux ×1

xxd ×1