What does an asterisk "*" mean in hexdump output?
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5
--
Chapters
00:00 Question
00:28 Accepted answer (Score 86)
00:47 Answer 2 (Score 2)
01:34 Thank you
--
Full question
https://superuser.com/questions/494245/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #dd #hexdump
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5
--
Chapters
00:00 Question
00:28 Accepted answer (Score 86)
00:47 Answer 2 (Score 2)
01:34 Thank you
--
Full question
https://superuser.com/questions/494245/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#linux #dd #hexdump
#avk47
ACCEPTED ANSWER
Score 88
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).
ANSWER 2
Score 3
As mentioned in the comments, without to verbose option to hexdump, -v
, the asterisk indicates "same as above". Most likely seen on empty files or parts thereof:
> hexdump -C -s 12 -n 32 test-data/blk00000.dat
0000000c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0000002c
Adding the option -v
to hexdump gives the full result, which is especially useful, if the output is used as input to some other process:
> hexdump -v -C -s 12 -n 32 test-data/blk00000.dat
0000000c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000001c 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0000002c
(Answer added for completeness)