od

UK [ɔd] US [ɑd]

n.Natural force

Linux od command syntax

Function:od command is used to output file contents. The command reads the contents of the given file and renders its contents in octal notation.

Syntax:od [-abcdfhilovx][-A ][-j ][-N ] [-s ][-t ][-w ][--help][--version][File...]

Linux od command example

Create tmp file:

$ echo abcdef g > tmp $ cat tmp abcdef g

Use od command:

$ od -b tmp0000000 141 142 143 144 145 146 040 147 0120000011

Use single-byte octal interpretation for output. Note that the default address format on the left is eight bytes:

$ od -c tmp0000000 a b c d e f g \n0000011

Use ASCII code for output, note that it includes escape characters

$ od -t d1 tmp0000000 97 98 99 100 101 102 32 103 100000011

Use single-byte decimal for interpretation

$ od -A d -c tmp0000000 a b c d e f g \n0000009