OS Manuals

/usr/bin/od

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running od --help (exit 0). permalink

Dump files in octal and other formats

Usage: od [OPTION]... [--] [FILENAME]...
       od [-abcdDefFhHiIlLoOsxX] [FILENAME] [[+][0x]OFFSET[.][b]]
       od --traditional [OPTION]... [FILENAME] [[+][0x]OFFSET[.][b] [[+][0x]LABEL[.][b]]]

Options:
      --help                   Print help information.
  -A, --address-radix <RADIX>  Select the base in which file offsets are printed.
  -j, --skip-bytes <BYTES>     Skip bytes input bytes before formatting and writing.
  -N, --read-bytes <BYTES>     limit dump to BYTES input bytes
      --endian <big|little>    byte order to use for multi-byte formats [possible values: big,
                               little]
  -S, --strings [<BYTES>]      output strings of at least BYTES graphic chars. 3 is assumed when
                               BYTES is not specified.
  -a                           named characters, ignoring high-order bit
  -b                           octal bytes
  -c                           ASCII characters or backslash escapes
  -d                           unsigned decimal 2-byte units
  -D                           unsigned decimal 4-byte units
  -o                           octal 2-byte units
  -I                           decimal 8-byte units
  -L                           decimal 8-byte units
  -i                           decimal 4-byte units
  -l                           decimal 8-byte units
  -x                           hexadecimal 2-byte units
  -h                           hexadecimal 2-byte units
  -O                           octal 4-byte units
  -s                           decimal 2-byte units
  -X                           hexadecimal 4-byte units
  -H                           hexadecimal 4-byte units
  -e                           floating point double precision (64-bit) units
  -f                           floating point single precision (32-bit) units
  -F                           floating point double precision (64-bit) units
  -t, --format <TYPE>          select output format or formats
  -v, --output-duplicates      do not use * to mark line suppression
  -w, --width [<BYTES>]        output BYTES bytes per output line. 32 is implied when BYTES is not
                               specified.
      --traditional            compatibility mode with one input, offset and label.
  -V, --version                Print version

Displays data in various human-readable formats. If multiple formats are
specified, the output will contain all formats in the order they appear on the
command line. Each format will be printed on a new line. Only the line
containing the first format will be prefixed with the offset.

If no filename is specified, or it is "-", stdin will be used. After a "--", no
more options will be recognized. This allows for filenames starting with a "-".

If a filename is a valid number which can be used as an offset in the second
form, you can force it to be recognized as a filename if you include an option
like "-j0", which is only valid in the first form.

RADIX is one of o,d,x,n for octal, decimal, hexadecimal or none.

BYTES is decimal by default, octal if prefixed with a "0", or hexadecimal if
prefixed with "0x". The suffixes b, KB, K, MB, M, GB, G, will multiply the
number with 512, 1000, 1024, 1000^2, 1024^2, 1000^3, 1024^3, 1000^2, 1024^2.

OFFSET and LABEL are octal by default, hexadecimal if prefixed with "0x" or
decimal if a "." suffix is added. The "b" suffix will multiply with 512.

TYPE contains one or more format specifications consisting of:
    a for printable 7-bits ASCII
    c for utf-8 characters or octal for undefined characters
    d[SIZE] for signed decimal
    f[SIZE] for floating point
    o[SIZE] for octal
    u[SIZE] for unsigned decimal
    x[SIZE] for hexadecimal
SIZE is the number of bytes which can be the number 1, 2, 4, 8 or 16,
    or C, S, I, L for 1, 2, 4, 8 bytes for integer types,
    or F, D, L for 4, 8, 16 bytes for floating point.
Any type specification can have a "z" suffix, which will add a ASCII dump at
    the end of the line.

If an error occurred, a diagnostic message will be printed to stderr, and the
exit code will be non-zero.
Options (30)
OptionDescriptionSource
--helpPrint help information.help + man
-A, --address-radix RADIXSelect the base in which file offsets are printed.help + man
-j, --skip-bytes BYTESSkip bytes input bytes before formatting and writing.help + man
-N, --read-bytes BYTESlimit dump to BYTES input byteshelp + man
--endian big|littlebyte order to use for multi-byte formats [possible values: big, little]help + man
-S, --strings BYTESoutput strings of at least BYTES graphic chars.help
-anamed characters, ignoring high-order bithelp + man
-boctal byteshelp + man
-cASCII characters or backslash escapeshelp + man
-dunsigned decimal 2-byte unitshelp + man
-Dunsigned decimal 4-byte unitshelp + man
-ooctal 2-byte unitshelp + man
-Idecimal 8-byte unitshelp + man
-Ldecimal 8-byte unitshelp + man
-idecimal 4-byte unitshelp + man
-ldecimal 8-byte unitshelp + man
-xhexadecimal 2-byte unitshelp + man
-hhexadecimal 2-byte unitshelp + man
-Ooctal 4-byte unitshelp + man
-sdecimal 2-byte unitshelp + man
-Xhexadecimal 4-byte unitshelp + man
-Hhexadecimal 4-byte unitshelp + man
-efloating point double precision (64-bit) unitshelp + man
-ffloating point single precision (32-bit) unitshelp + man
-Ffloating point double precision (64-bit) unitshelp + man
-t, --format TYPEselect output format or formatshelp + man
-v, --output-duplicatesdo not use * to mark line suppressionhelp + man
-w, --width BYTESoutput BYTES bytes per output line.help
--traditionalcompatibility mode with one input, offset and label.help + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.