| Main index | Section 1 | 日本語 | Deutsch | Options |
The options are as follows:
| | |||||||||||||
| Specify the input address base. The argument base may be one of d, o, x or n, which specify decimal, octal, hexadecimal addresses or no address, respectively. | |||||||||||||
| | |||||||||||||
|
Output named characters.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output octal shorts.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output octal bytes.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output C-style escaped characters.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output unsigned decimal ints.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output unsigned decimal shorts.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output double-precision floating point numbers.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output single-precision floating point numbers.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output hexadecimal ints.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output hexadecimal shorts.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output signed decimal longs.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output signed decimal ints.
Equivalent to
| |||||||||||||
| | |||||||||||||
| Skip skip bytes of the combined input before dumping. The number may be followed by one of b, k or m which specify the units of the number as blocks (512 bytes), kilobytes and megabytes, respectively. | |||||||||||||
| | |||||||||||||
| Dump at most length bytes of input. | |||||||||||||
| | |||||||||||||
|
Output octal ints.
Equivalent to
| |||||||||||||
| | |||||||||||||
|
Output signed decimal shorts.
Equivalent to
| |||||||||||||
| | |||||||||||||
| Specify the output format. The type argument is a string containing one or more of the following kinds of type specifiers: | |||||||||||||
| a |
Named characters
(ASCII).
Control characters are displayed using the following names:
| ||||||||||||
| c |
Characters in the default character set.
Non-printing characters are
represented as 3-digit octal character codes, except the following
characters, which are represented as C escapes:
| ||||||||||||
| NUL | \0 |
| alert | \a |
| backspace | \b |
| newline | \n |
| carriage-return | |
| \r | |
| tab | \t |
| vertical tab | \v |
Multi-byte characters are displayed in the area corresponding to the first byte of the character. The remaining bytes are shown as ‘**’.
| [d|o|u|x][C|S|I|L| n]Signed decimal ( d), octal ( o), unsigned decimal ( u) or hexadecimal ( x). Followed by an optional size specifier, which may be either C (char), S (short), I (int), L (long), or a byte count as a decimal integer. | |
| f[F|D|L| n]Floating-point number. Followed by an optional size specifier, which may be either F (float), D (double) or L (long double). | |
| | Write all input data, instead of replacing lines of duplicate values with a ‘*’. |
Multiple options that specify output format may be used; the output will contain one line for each format.
If no output format is specified,
$ echo "FreeBSD: The power to serve" | od -a -c
0000000 F r e e B S D : sp T h e sp p o w
F r e e B S D : T h e p o w
0000020 e r sp t o sp s e r v e nl
e r t o s e r v e \n
0000034
Dump stdin skipping the first 13 bytes using named characters and dumping no more than 5 bytes:
$ echo "FreeBSD: The power to serve" | od -An -a -j 13 -N 5
p o w e r
| OD (1) | December 22, 2011 |
| Main index | Section 1 | 日本語 | Deutsch | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | A UNIX saleslady, Lenore, Enjoys work, but she likes the beach more. She found a good way To combine work and play: She sells C shells by the seashore. |
” |