/usr/xpg4/bin/od [ -bcCDdFfOoSsvXx
] [ -] [ file ] [ offset_string ]
/usr/xpg4/bin/od [ -bcCDdFfOoSsvXx ] [ -A address_base ] [ -j skip ] [
-N count ] [ -t type_string ...] [ - ] [ file ...]
null \0 backspace \b form-feed \f new-line \n return \r tab \t
echo "hello world" | od -c 0000000 h e l l o w o r l d \n 0000014
null \0 backspace \b formfeed \f newline \n return \r tab \t
Other non-printable characters appear as one three-digit octal number for each byte in the character.
Named Characters in od
Value | Name | Value | Name | Value | Name | Value | Name |
\000 | nul | \001 | soh | \002 | stx | \003 | etx |
\004 | eot | \005 | enq | \006 | ack | \007 | bel |
\010 | bs | \011 | ht | \012 | lf | \013 | vt |
\014 | ff | \015 | cr | \016 | so | \017 | si |
\020 | dle | \021 | dc1 | \022 | dc2 | \023 | dc3 |
\024 | dc4 | \025 | nak | \026 | syn | \027 | etb |
\030 | can | \031 | em | \032 | sub | \033 | esc |
\034 | fs | \035 | gs | \036 | rs | \037 | us |
\040 | sp | \177 | del |
.- the first character of the last operand is a plus sign (+)
.- the first character of the second operand is numeric
.- the first character of the second operand is x and the second character of the second operand is a lower-case hexadecimal character or digit
.- the second operand is named "x"
.- the second operand is named "."
then the corresponding operand is assumed to be an offset operand rather than a file operand.Without the -N count option, the display continues until an end-of-file is reached.