[ Prev ] [ Index ] [ Next ]

Hexadecimal output

Created Monday 17 August 2020

The following syntax will produce an Hexadecimal / ASCII output:

od -tx1z <filename>

The output will look like this:

0000000 25 50 44 46 2d 31 2e 34 0d 25 e2 e3 cf d3 0d 0a  >%PDF-1.4.%......<
0000020 32 31 37 34 20 30 20 6f 62 6a 0d 3c 3c 2f 4c 69  >2174 0 obj.<</Li<
0000040 6e 65 61 72 69 7a 65 64 20 31 2f 4c 20 31 30 38  >nearized 1/L 108<
0000060 36 35 38 31 2f 4f 20 32 31 37 37 2f 45 20 33 36  >6581/O 2177/E 36<
0000100 36 30 36 2f 4e 20 35 36 2f 54 20 31 30 34 33 30  >606/N 56/T 10430<

Or the following syntax:

od -tax1z <filename>

Will produce a more verbose output:

000000   %   P   D   F   -   1   .   4  cr   %   b   c   O   S  cr  nl
        25  50  44  46  2d  31  2e  34  0d  25  e2  e3  cf  d3  0d  0a  >%PDF-1.4.%......<
000010   2   1   7   4  sp   0  sp   o   b   j  cr   <   <   /   L   i
        32  31  37  34  20  30  20  6f  62  6a  0d  3c  3c  2f  4c  69  >2174 0 obj.<</Li<
000020   n   e   a   r   i   z   e   d  sp   1   /   L  sp   1   0   8
        6e  65  61  72  69  7a  65  64  20  31  2f  4c  20  31  30  38  >nearized 1/L 108<
000030   6   5   8   1   /   O  sp   2   1   7   7   /   E  sp   3   6
        36  35  38  31  2f  4f  20  32  31  37  37  2f  45  20  33  36  >6581/O 2177/E 36<
000040   6   0   6   /   N  sp   5   6   /   T  sp   1   0   4   3   0
        36  30  36  2f  4e  20  35  36  2f  54  20  31  30  34  33  30  >606/N 56/T 10430<