файлы дампа в различных форматах (dump files in various formats)
Параметры (Options)
The od utility shall conform to the Base Definitions volume of
POSIX.1‐2017, Section 12.2, Utility Syntax Guidelines, except
that the order of presentation of the -t
options and the -bcdosx
options is significant.
The following options shall be supported:
-A
address_base
Specify the input offset base. See the EXTENDED
DESCRIPTION section. The application shall ensure that
the address_base option-argument is a character. The
characters 'd'
, 'o'
, and 'x'
specify that the offset
base shall be written in decimal, octal, or
hexadecimal, respectively. The character 'n'
specifies
that the offset shall not be written.
-b
Interpret bytes in octal. This shall be equivalent to
-t o1
.
-c
Interpret bytes as characters specified by the current
setting of the LC_CTYPE category. Certain non-graphic
characters appear as C escapes: "NUL=\0"
, "BS=\b"
,
"FF=\f"
, "NL=\n"
, "CR=\r"
, "HT=\t"
; others appear as
3-digit octal numbers.
-d
Interpret words (two-byte units) in unsigned decimal.
This shall be equivalent to -t u2
.
-j
skip Jump over skip bytes from the beginning of the input.
The od utility shall read or seek past the first skip
bytes in the concatenated input files. If the combined
input is not at least skip bytes long, the od utility
shall write a diagnostic message to standard error and
exit with a non-zero exit status.
By default, the skip option-argument shall be
interpreted as a decimal number. With a leading 0x or
0X, the offset shall be interpreted as a hexadecimal
number; otherwise, with a leading '0'
, the offset shall
be interpreted as an octal number. Appending the
character 'b'
, 'k'
, or 'm'
to offset shall cause it to
be interpreted as a multiple of 512, 1024, or 1048576
bytes, respectively. If the skip number is hexadecimal,
any appended 'b'
shall be considered to be the final
hexadecimal digit.
-N
count Format no more than count bytes of input. By default,
count shall be interpreted as a decimal number. With a
leading 0x or 0X, count shall be interpreted as a
hexadecimal number; otherwise, with a leading '0'
, it
shall be interpreted as an octal number. If count bytes
of input (after successfully skipping, if -j
skip is
specified) are not available, it shall not be
considered an error; the od utility shall format the
input that is available.
-o
Interpret words (two-byte units) in octal. This shall
be equivalent to -t o2
.
-s
Interpret words (two-byte units) in signed decimal.
This shall be equivalent to -t d2
.
-t
type_string
Specify one or more output types. See the EXTENDED
DESCRIPTION section. The application shall ensure that
the type_string option-argument is a string specifying
the types to be used when writing the input data. The
string shall consist of the type specification
characters a
, c
, d
, f
, o
, u
, and x
, specifying named
character, character, signed decimal, floating point,
octal, unsigned decimal, and hexadecimal, respectively.
The type specification characters d
, f
, o
, u
, and x
can
be followed by an optional unsigned decimal integer
that specifies the number of bytes to be transformed by
each instance of the output type. The type
specification character f
can be followed by an
optional F
, D
, or L
indicating that the conversion
should be applied to an item of type float
, double
, or
long double
, respectively. The type specification
characters d
, o
, u
, and x
can be followed by an
optional C
, S
, I
, or L
indicating that the conversion
should be applied to an item of type char
, short
, int
,
or long
, respectively. Multiple types can be
concatenated within the same type_string and multiple
-t
options can be specified. Output lines shall be
written for each type specified in the order in which
the type specification characters are specified.
-v
Write all input data. Without the -v
option, any number
of groups of output lines, which would be identical to
the immediately preceding group of output lines (except
for the byte offsets), shall be replaced with a line
containing only an <asterisk> ('*'
).
-x
Interpret words (two-byte units) in hexadecimal. This
shall be equivalent to -t x2
.
Multiple types can be specified by using multiple -bcdostx
options. Output lines are written for each type specified in the
order in which the types are specified.