What's a Hex Dump - What does it mean?

Nishant picture Nishant · Apr 6, 2011 · Viewed 9.5k times · Source
thegladiator:~/cp$ cat new.txt
Hello World This is a Trest Progyy

thegladiator:~/cp$ hexdump new.txt
0000000 6548 6c6c 206f 6f57 6c72 2064 6854 7369
0000010 6920 2073 2061 7254 7365 2074 7250 676f
0000020 7979 000a                              
0000023

How is that text data represented in hex like that? What is the meaning of this?

Answer

KevinDTimm picture KevinDTimm · Apr 6, 2011

it's just what it says, a dump of the data in hexidecimal format:

H 48 
e 65
l 6c
l 6c
o 6f

It is odd though that all of the bytes are swapped (65 48 : e H)

If you're on a *nix system, you can use 'od -x', or 'man od' will tell you all the ways to get data from od :)