hexdump 命令的输出格式是什么?
echo -n abcd > my_test_file
hexdump my_test_file
# 0000000 6261 6463
# 0000004
hexdump -C my_test_file
# 00000000 61 62 63 64 |abcd|
# 00000004
文件是否像第一个输出一样存储在硬盘上,并且“hexdump -C”输出被重新排序以提高可读性?
echo -n abcd > my_test_file
hexdump my_test_file
# 0000000 6261 6463
# 0000004
hexdump -C my_test_file
# 00000000 61 62 63 64 |abcd|
# 00000004
Is the file stored on harddisk like the first output and the "hexdump -C"-output is reordered for readability?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第二个十六进制转储表示磁盘上的存储。第一个变体的存在更多是出于历史原因(PDP-11 上的 16 位大端架构)。
The second hexdump represents the storage on disk. The first variant exists more for historic reasons (16 bit big-endian architecture on PDP-11).