search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Programming Dictionary

Online technical manual for service programmers
Popular searches:
Dictionary homepage Server Linux Linux od command
Linux od command Detailed instructions for use

Linux od command

Chinese translation Recent Updates: 2018-06-13 09:42:01

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 <Character base>][-j <Number of characters>][-N <Number of characters>] [-s <Number of characters in string>][-t <Output format>][-w <Number of characters in each column>][--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
Linux od command