Skip to main content
2 of 3
added 151 characters in body
ilkkachu
  • 147.9k
  • 16
  • 268
  • 441

The three parts are the offset from the start of the input, in hex; the data in hex; and the data in characters, if they're printable. 16 bytes to a line, since it's a nice round number and fits nicely on a screen.

A display like that is very often used in cases where both the binary and the textual data may be important. E.g. tcpdump -X uses a similar one.

On your first line:

00000000: 5036 0a31 3131 2031 3332 0a32 3535 0a55  P6.111 132.255.U
    

The offset 00000000 is zero, since this is the beginning; 50, 36, and 0a are the character codes for P, 6, and the newline, and so on. Unprintable characters are printed as dots on the right hand column.

Of course, the meaning of the data itself can be found out from the documentation for the ppm format. My system has the man page ppm(5). (the online version on die.net has broken formatting.)

From that first line we can tell it's an RGB picture of size 111x132 pixels with 8-bits per sample.

ilkkachu
  • 147.9k
  • 16
  • 268
  • 441