Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

adb(1)

OD(1)

NAME

od, xd − octal and hexadecimal dump

SYNOPSIS

od [ −bcdox ] [ file ] [ [ + ]offset[ . ][ b ] ]
xd [ −bcdox ] [ file ] [ [ + ]offset[ . ][ b ] ]

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: System III and HP

DESCRIPTION

Od (xd) dumps file in one or more formats as selected by the first argument.  If the first argument is missing, −o (−x) is the default.  Each line is prepended with an offset field.  For od, the offset is in octal, for xd the offset is in hexadecimal.  The meanings of the format options are:

−b Interpret bytes in octal (hexadecimal). 

−c Interpret bytes in ASCII.  Certain non-graphic characters appear as C escapes: null=\0, backspace=\b, form-feed=\f, new-line=\n, return=\r, tab=\t; others appear as 3-digit octal numbers. 

−d Interpret 16-bit words in decimal. 

−o Interpret 16-bit words in octal. 

−x Interpret 16-bit words in hexadecimal. 

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

The offset argument specifies the offset in the file where dumping is to commence.  This argument is normally interpreted as octal bytes.  If . is appended, offset is interpreted in decimal.  If 0x is prepended, offset is interpreted in hexadecimal.  If b is appended, offset is interpreted in blocks of 512 bytes.  If the file argument is omitted, offset must be preceded by +. 

Dumping continues until end-of-file. 

SEE ALSO

adb(1). 

Hewlett-Packard  —  last mod. May 11, 2021

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