Questions tagged [hexdump]
54 questions
4
votes
1 answer
Why do I get different output from hexdump compared to xxd?
Why does hexdump seem to miss out parts of the file, while xxd does not? The file is 32 bytes. So xxd output is correct.
$ xxd test.bin
0000000: 8888 8888 8888 8888 8888 8888 8888 8888 ................
0000010: 8888 8888 8888 8888 8888 8888 8888…

ashleysmithgpu
- 4,337
3
votes
1 answer
Can hexdump display its text translations in alternate encodings?
Hexdump's canonical format displays an ASCII translation of whatever it's looking at in the right column. I have a binary file, containing non-ASCII strings, for which I know some (not all) of the character set. Is there a way to tell hexdump to use…

Andrew
- 1,115
3
votes
1 answer
hexdump: How to suppress offset column in hex mode
I wanted to get 16 bytes from a binary file, starting from 5th byte, no separation of bytes or words by spaces.
hexdump will do what I want, just the offset column is disturbing the output:
$ hexdump -s5 -n16 -xe '/1 "%01X"' binfile
od does the…

syntaxerror
- 2,246
2
votes
2 answers
Have hexdump do print a line everytime the Ascii 0a reached
as $ hexdump -C data print the hex content of file in 16 bytes a line
How then to, by set its option, to print a line everytime the Ascii 0a (newline) is encountered ?
user496281
2
votes
2 answers
Get absolute memory addresses instead of relative offsets from hexdump
I'm trying to get a better understanding of memory addresses. I've just begun examining binaries with hexdump. Ex output:
0000000 cf fa ed fe 07 00 00 01 03 00 00 80 02 00 00 00
0000010 0e 00 00 00 b0 03 00 00 85 00 00 00 00 00 00 00
0000020 19 00…

David Kennell
- 155
1
vote
1 answer
How to include a backslash \ in the hexdump output format string?
What I want to see:
$ printf "\U1F600\n"|hexdump -v -e '1/1 " %03o"'|tr ' ' '\\'
\360\237\230\200\012
What I tried:
$ printf "\U1F600\n"|hexdump -v -e '1/1 "\\%03o"'
hexdump: bad conversion character %�
$ printf "\U1F600\n"|hexdump -v -e '1/1…
user306023
1
vote
1 answer
Strange ascii from hexdump of text file
I saw this question Why does Ctrl-D (EOF) exit the shell? and wanted to try the example on the second answer.
So i've created a file and used hexdump:
federico@home ~ $ cat > test.txt
prova
^C
federico@home ~ $ hexdump test.txt
0000000 7270 766f…

Federico Ponzi
- 724