hexdump 命令的输出格式是什么?

发布于 2024-10-09 18:05:00 字数 296 浏览 0 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

川水往事 2024-10-16 18:05:00

第二个十六进制转储表示磁盘上的存储。第一个变体的存在更多是出于历史原因(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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文