Linux: View binary file

 

To view binary files with od or hexdump command.

$ od -tx1 -tc -Ax binFile
000000  61  62  63  64  65  31  32  33  34  35  61  62  63  64  65  31
         a   b   c   d   e   1   2   3   4   5   a   b   c   d   e   1
000010  32  33  34  35  61  62  63  64  65  31  32  33  34  35  61  62
         2   3   4   5   a   b   c   d   e   1   2   3   4   5   a   b
000020  63  64  65  31  32  33  34  35  0a
         c   d   e   1   2   3   4   5  \n
000029

-tx1 option indicates the bytes in the file listed in hexadecimal form, each one byte (-c option is similar hexdump)

-tc option indicates that the file in ASCII code listed in characters (and hexdump similar to the output of the leftmost column is the file address in octal default display)

-Ax option requires shown in hexadecimal file Address

 

Guess you like

Origin www.cnblogs.com/yongdaimi/p/12326496.html