Name
od
Synopsis
od [options] [file] [[+]offset[. | b]]
Octal dump; produce a dump (normally octal) of the named file. file is displayed from its beginning, unless you specify an offset (normally in octal bytes). In the following options, a “word” is a 16-bit unit.
Common Options
-Abase,--address-radix=baseIndicate how the offset should be written. Values for base are
dfor decimal,ofor octal,xfor hexadecimal, ornfor no offset.-
-b Display bytes as octal.
-
-c Display bytes as ASCII.
-
-d Display words as unsigned decimal.
-
-f Display 32-bit words as floating point.
-jskip,--skip-bytes=skipJump over skip bytes from the beginning of the input. skip can have a leading
0or0xfor it to be treated as an octal or hexadecimal value. It can have a trailingb,k, ormto be treated as a multiple of 512, 1024, or 1,048,576 bytes.-Ncount,--read-bytes=countProcess up to count input bytes.
-
-o Display words as unsigned octal (the default).
-ttype_string,--format=type_stringSpecify one or more output types. See the "Common Type Strings" section later in this entry.
-v,--output-duplicatesVerbose; show all data. Without this, duplicate lines print as
*.-
-x Display words as hexadecimal.[*]
-
+ Required before offset if file isn’t specified.
Solaris and Mac OS X Options
-
-D Display 32-bit words as unsigned decimal.
-
-F Display 64-bit words as extended precision.
-
-O Display 32-bit words as unsigned octal.
-
-s Display words as signed decimal.
-
-X Display 32-bit words as hexadecimal.