Questions tagged [hexdump]

32 questions
68
votes
2 answers

What does an asterisk "*" mean in hexdump output?

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 …
Rodnower
  • 2,119
  • 6
  • 31
  • 46
56
votes
5 answers

Why don't you see binary code when you open a binary file with text editor?

Why don't you see binary code when you open a binary file with text editor? For example, when I open an image with text editor, I see some weird characters and also some human readable characters; but the image should be encoded in binary.
Templar
  • 935
  • 4
  • 13
  • 26
29
votes
3 answers

Can sublime text be used as hex editor?

I am trying to open the skype .dat hex files and I would like to know if I can use Sublime text instead of the other 'dedicated' hex editors.
Zuhayer Tahir
  • 394
  • 1
  • 3
  • 9
17
votes
1 answer

hexdump vs actual file contents

When I do hexdump filename.txt I get the following as output: 00000000 ac5a 5afb c08d 5d15 26d0 2491 e8c9 8917 00000010 When I do I get this: 5aacfb5a8dc0155dd0269124c9e81789 So why is hexdump…
neubert
  • 6,863
  • 35
  • 76
  • 138
14
votes
5 answers

hexdump vs xxd format difference

I was searching for how to do a reverse hexdump and found xxd mentioned. However, it does not seem to work with simply: xxd -r hexdumpfile > binaryfile I then compared the difference between outputs of xxd infile and hexdump infile, and found three…
tanon
  • 141
  • 1
  • 1
  • 3
13
votes
3 answers

How to convert file data to plain hex?

How to easily convert to/from plain machine-readable hexadecimal data (without any paddings/offsets/character view) with xdd or hexdump? I'm tired of digging of some special format strings (and finding out that it suddenly starts wrapping lines…
Vi.
  • 16,755
  • 32
  • 111
  • 189
11
votes
1 answer

Attempting to access RAM /dev/mem... says "Operation not permitted"

I am using Ubuntu 12.04 I read the following tutorial on how to access the contents of RAM in Linux.... http://www.rootninja.com/using-dd-to-search-for-strings-in-memory-or-devices/ Code: dd if=/dev/mem | hexdump -C | grep “string to search for” So,…
KingNeil
8
votes
5 answers

Is there a utility like hexdump that will handle non-native endian-ness?

Hexdump's ability to read binary data and format it appropriately so it can, for example, be piped to awk is very useful, but I regularly need to read files in which the binary data is of a different endian-ness from that native to the system. In…
EHN
  • 610
  • 5
  • 11
6
votes
1 answer

How do I dump raw binary 'bits' from a file, without line numbers and ASCII interpretation?

How do I dump a "pure" and plain binary sequence of bits? For example, I have this: 0000000: 10001001 01010000 01001110 01000111 00001101 00001010 .PNG.. 0000006: 00011010 00001010 00000000 00000000 00000000 00001101 ...... 000000c: 01001001…
learnerX
  • 374
  • 2
  • 7
  • 16
5
votes
1 answer

View serial device output in console in hex

I'm able to convert my serial device output to hex format doing these two commands: cat /dev/ttyUSB0 > data.dump #send some data to serial device, and interrupt cat using Ctrl+C after some time xxd data.dump It gives me output like: 00000000: 80ff…
bladekp
  • 259
  • 1
  • 3
  • 7
4
votes
1 answer

Is this a File Header / Magic Number?

I've got 120,000 files (way more, actually; this is just an arbitrary subset) of an unknown type. Linux file does not identify them (not that they're necessarily Linux files), nor do any other methods I've tried. There are only two hints about them…
Hammer Bro.
  • 389
  • 1
  • 5
  • 14
3
votes
2 answers

Can hexdump (hd) or octal dump (od) be used to display binary data as zeros and ones?

Is there a way to display the binary contents of a file as zeros and ones? So instead of something like this: DE AD BE EF We could get output like this: 11011110 10101101 10111110 11101111 Is there a way to do this with basic command line…
snapfractalpop
  • 133
  • 1
  • 5
2
votes
1 answer

Why does newline come before space in the output of hexdump?

Using hexdump, printing these characters in the "canonical" format gives the output that I expect, while the default format throws me off. $ echo " " |hexdump # Reversed? 0000000 0a20 0000002 $ echo -n " " |hexdump #…
2
votes
0 answers

Identify recovered filetype

I'm searching some info about this file. It was recovered from a failed HD, with Ontrack EasyRecovery. The file extension may not be accurate. I tried with TrID (I'm the developer), and based on the firsts 4 bytes it's identified as a "Windows…
Mark0
  • 149
  • 5
2
votes
0 answers

How can I interactively diff large binary files?

I'm trying to compare hex-dumps of some 500GB disk images. I can easily view parts of the files by piping hd into less. I'd like something similar to interactively diff them without having to read the entire files. I'd like to manually examine the…
Wes Toleman
  • 231
  • 1
  • 5
1
2 3