2012-12-19 31 views
0

這是我用過的命令:使用hexdump檢查/ dev/mem時,爲什麼有些地址丟失?

sudo hexdump -C /dev/mem | less

它傾倒的結果的一部分:

00000070 53 ff 00 f0 a4 f0 00 f0 c7 ef 00 f0 e0 ba 00 c0 |S...............| 
00000080 ef 27 00 f0 ef 27 00 f0 ef 27 00 f0 ef 27 00 f0 |.'...'...'...'..| 
* 
00000100 99 1b 32 e7 01 e4 00 f0 65 f0 00 f0 e0 be 00 c0 |..2.....e.......| 
00000110 ef 27 00 f0 ef 27 00 f0 ef 27 00 f0 ef 27 00 f0 |.'...'...'...'..| 
* 
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 

有趣的是,在地址[0x00000120,0x0000017f]作爲「忽略* 「而不是我想要看到的價值。

據我所知,這些部件是被保護的,不被讀取,但爲什麼?或者我錯過了什麼?

回答

1

十六進制是抑制重複行,使輸出更容易閱讀。

從 '人hexdump都' 頁:

-v  Cause hexdump to display all input data. Without the -v option, 
     any number of groups of output lines, which would be identical to 
     the immediately preceding group of output lines (except for the 
     input offsets), are replaced with a line comprised of a single 
     asterisk. 
+0

好主意!這使事情變得簡單。 – sleepsort

相關問題