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.
-A baseIndicate how the offset should be written. Values for base are d for decimal, o for octal, x for hexadecimal, or n for no offset. Solaris only.
-bDisplay bytes as octal.
-cDisplay bytes as ASCII.
-CInterpret bytes as characters based on the setting of LC_CTYPE. Solaris only.
-dDisplay words as unsigned decimal.
-DDisplay 32-bit words as unsigned decimal.
-fDisplay 32-bit words as floating point.
-FDisplay 64-bit words as extended precision.
-j skipJump over skip bytes from the beginning of the input. skip can have a leading 0 or 0x for it to be treated as an octal or hexadecimal value. It can have a trailing b, k, or m to be treated as a multiple of 512, 1024, or 1,048,576 bytes. Solaris only.
-N countProcess up to count input bytes. Solaris only.
-oDisplay words as unsigned octal (the default).
-ODisplay 32-bit words as unsigned octal.
-sDisplay words as signed decimal.
-SDisplay 32-bit words as signed decimal.
-t type_stringSpecify one or more output types. See the section "Type Strings." Solaris only.
-vVerbose; show all data. Duplicate lines print as *.
-xDisplay words as hexadecimal.
-XDisplay 32-bit words as hexadecimal.
+Required before offset if file isn't specified.
.offset value is decimal.
boffset value is 512-byte blocks.
Type strings can be followed by a decimal number indicating how many bytes to process.
a | ASCII named characters (e.g., BEL for |
c | Single- or multibyte characters |
d, o, u, x | Signed decimal, unsigned octal, decimal, and hexadecimal |
f | Floating point |