od (target)
Dump data in octal or hex format (POSIX, toybox)
Syntax:
od [-bcdosxv] [-j skip] [-N dump] [-w width] [-A output_type] [-t output_format[num]]
Runs on:
QNX OS
Options:
- -A output_type
- Address base, where output_type is one of the following values:
- d — decimal
- h — hexadecimal
- n — none
- o — octal
- -j skip
- Skip the specified amount of bytes of input.
- -N dump
- Stop dumping after the number of bytes specified by dump.
- -t output_format[num]
- Specify the output type, where num is an optional byte size; see
Output formats
below. - -v
- Don't collapse repeated lines together.
- -w width
- Total line width in bytes (default 16).
For additional options, see Aliases
below.
Description:
The od utility outputs data in various forms, including octal and hex.
Output formats
To specify the output type, use the -t option. The valid formats are:
- a — ASCII
- c — character
- d — decimal
- f — float
- o — octal
- u — unsigned
- x — hexadecimal
Aliases
You can use one of the following aliases to indicate a format and byte size combination:
To display output as: | Use: | Instead of: |
---|---|---|
octal 1-byte | -b | -t o1 |
char | -c | -t c |
unsigned 2-byte | -d | -t u2 |
octal 2-byte | -o | -t o2 |
double 2-byte | -s | -t d2 |
hex 2-byte | -x | -t x2 |
This utility is provided as part of the toybox package. For information on how to enable it, see toybox.
Contributing author:
Rob Landley and the toybox project (see https://landley.net/toybox/).
Page updated: