The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
80 views

Head on very large files

I have 2 very big files (27G and 40G), which are output of dd command on a failing hard drive. I wanted to compare the first bytes to see if the 27G bytes is the begining/substring of the 40G. I ...
2
votes
1answer
34 views

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

Does anyone know of 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 ...
1
vote
1answer
50 views

How to dump raw binary 'bits' from a file?

Before this is marked as 'possible duplicate' of this or that, let me make it clear that I have looked at other similar questions. However, they do not suggest how to dump a "pure" and plain binary ...
14
votes
1answer
679 views

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 <?= bin2hex(file_get_contents('filename.txt')); ?> I get ...
1
vote
1answer
152 views

Solve this hex riddle! - What went wrong with my output redirection?

Following on from my question TF101 Android: Image block device via adb in which I tried unsuccessfully to save a raw image of a block device by output redirection, this question tries to determine ...
0
votes
4answers
3k views

How do you obtain 'raw binary dump' of a file?

I came through it in a question - What in the world is a .el8 file?. I am curious how @slhck determined that the file in question was pointing to the software - eLecta
3
votes
0answers
3k views

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 ...
1
vote
1answer
126 views

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 ...
7
votes
1answer
2k views

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 ...
4
votes
1answer
898 views

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 ...
2
votes
0answers
109 views

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 ...
41
votes
5answers
6k views

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 ...
5
votes
1answer
5k views

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 ...
4
votes
2answers
1k views

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 ...
0
votes
2answers
2k views

How to convert data to plain hex from console

How to easily convert to/from plain machine-readable HEX (without any paddings/offsets/character view) with xdd or hexdump? I'm tired of digging of some special format strings (and finding out that ...