[prev] [index] [next]

The od command (cont)

Examples of od use:

$ cat text
abcABC123!@#
$ od --format=c text
0000000  a  b  c  A  B  C  1  2  3  !  @  #  \n
0000015
$ od --format=d1 text
0000000   97   98   99   65   66   67   49   50   51   33   64   35   10
0000015
$ od --format=x1 text
0000000 61 62 63 41 42 43 31 32 33 21 40 23 0a
0000015
$ od --format=x4 text
0000000 41636261 32314342 23402133 0000000a
0000015

(default is octal data format, hence the name od = "octal dump")