开发者

What is the output format of the hexdump command?

开发者 https://www.devze.com 2023-02-01 09:43 出处:网络
echo -n abcd > my_test_file hexdump my_test_file # 0000000 6261 6463 # 0000004 hexdump -C my_test_file
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?


The second hexdump represents the storage on disk. The first variant exists more for historic reasons (16 bit big-endian architecture on PDP-11).

0

精彩评论

暂无评论...
验证码 换一张
取 消