Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ od(C) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

adb(CP)

hd(C)


 od(C)                           19 June 1992                           od(C)


 Name

    od - display files in octal format

 Syntax

    od [ -bcdox ] [ file ] [ [ + ] offset [ . ] [ b ] ]

 Description

    The od command displays file in one or more formats as selected by the
    first argument.  If the first argument is missing, -o is the default.
    The meanings of the format options are:

    -b    Interprets bytes in octal.

    -c    Interprets bytes in ASCII.  Certain nongraphic characters appear as
          C escapes: null=\0, backspace=\b, form feed=\f, newline=\n,
          return=\r, tab=\t; others appear as 3-digit octal numbers.

    -d    Interprets words in decimal.

    -o    Interprets words in octal.

    -x    Interprets words in hex.

    The file argument specifies which file is to be displayed.  If no file
    argument is specified, the standard input is used.

    The offset argument specifies the offset in the file where displaying is
    to start.  This argument is normally interpreted as octal bytes.  If
    ``.'' is appended, the offset is interpreted in decimal.  If ``b'' is
    appended, the offset is interpreted in blocks.  If the file argument is
    omitted, the offset argument must be preceded by ``+''.

    The display continues until end-of-file.

 See also

    adb(CP), hd(C)

 Standards conformance

    od is conformant with:

    AT&T SVID Issue 2;
    and X/Open Portability Guide, Issue 3, 1989.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026