What does an asterisk "*" mean in hexdump output?
17,782
A line in the hexdump output consisting just a *
means same as the line above
. This is mentioned in the hexdump's manpage at the -v
option (easy to be overlooked).
Related videos on Youtube
Author by
Rodnower
Updated on September 18, 2022Comments
-
Rodnower almost 2 years
I print MBR with hexdump and I get the following output:
000001a0 67 60 6f 70 65 72 61 74 69 6e 67 60 73 79 73 74 |g`operating`syst| 000001b0 65 6d 00 40 00 63 7b da c5 f5 61 68 00 40 00 40 |[email protected]{...ah.@.@| 000001c0 00 40 00 40 00 40 00 40 00 40 00 40 00 40 00 40 |.@.@.@.@.@.@.@.@| * 000001f0 00 40 00 40 00 40 00 40 00 40 00 40 00 40 55 ea |.@.@.@.@.@.@.@U.| 00000200
What does the astersik
*
mean in the output?-
Admin over 11 yearsIt's
dump
and it meanssame as above
. -
Admin over 11 yearsOK, wonderfull, I was guessing it, but just wanted be sure :) Can you put it as answer?
-
Admin about 4 years
*
can mean more than one line be careful.
-
-
BuvinJ almost 8 yearsThanks! That was super important for my parser to take into account!
-
ShreevatsaR over 7 years@BuvinJ (or rather anyone else): You can just pass
-v
to avoid this, so that your parser doesn't need to take it into account. -
Smeterlink about 4 years
*
can mean one line of more, as many as there are until the proper offset. -
detly almost 3 yearsThis is super confusing when it's actually the first and only thing that
hexdump
shows, but what it really means is you've got a file with nothing but zeros in it.