1OD(1)                       General Commands Manual                      OD(1)
2
3
4

NAME

6       od - octal, decimal, hex, ascii dump
7

SYNOPSIS

9       od [ -format ] [ file ] [ [+]offset[.][b] [label] ]
10

DESCRIPTION

12       Od  displays  file, or it's standard input, in one or more dump formats
13       as selected by the first argument.  If the first argument  is  missing,
14       -o is the default.  Dumping continues until end-of-file.
15
16       The meanings of the format argument characters are:
17
18       a    Interpret  bytes  as  characters and display them with their ACSII
19            names.  If the p character is given also,  then  bytes  with  even
20            parity are underlined.  The P character causes bytes with odd par‐
21            ity to be underlined.  Otherwise the parity bit is ignored.
22
23       b    Interpret bytes as unsigned octal.
24
25       c    Interpret bytes as ASCII characters.  Certain non-graphic  charac‐
26            ters appear as C escapes: null=\0, backspace=\b, formfeed=\f, new‐
27            line=\n, return=\r, tab=\t; others appear as  3-digit  octal  num‐
28            bers.  Bytes with the parity bit set are displayed in octal.
29
30       d    Interpret (short) words as unsigned decimal.
31
32       f    Interpret long words as floating point.
33
34       h    Interpret (short) words as unsigned hexadecimal.
35
36       i    Interpret (short) words as signed decimal.
37
38       l    Interpret long words as signed decimal.
39
40       o    Interpret (short) words as unsigned octal.
41
42       s[n] Look  for  strings  of ascii graphic characters, terminated with a
43            null byte.  N specifies the minimum length  string  to  be  recog‐
44            nized.  By default, the minimum length is 3 characters.
45
46       v    Show all data. By default, display lines that are identical to the
47            last line shown are not output, but are indicated with an ``*'' in
48            column 1.
49
50       w[n] Specifies  the  number  of  input bytes to be interpreted and dis‐
51            played on each output line. If w is not specified,  16  bytes  are
52            read for each display line.  If n is not specified, it defaults to
53            32.
54
55       x    Interpret (short) words as hexadecimal.
56
57       An upper case format character implies the  long  or  double  precision
58       form of the object.
59
60       The offset argument specifies the byte offset into the file where dump‐
61       ing is to commence.  By default this argument is interpreted in  octal.
62       A  different  radix can be specified; If ``.'' is appended to the argu‐
63       ment, then offset is interpreted in decimal.   If  offset  begins  with
64       ``x'' or ``0x'', it is interpreted in hexadecimal.  If ``b'' (``B'') is
65       appended, the offset is interpreted as a block count, where a block  is
66       512  (1024) bytes.  If the file argument is omitted, an offset argument
67       must be preceded by ``+''.
68
69       The radix of the displayed address will be the same as the radix of the
70       offset, if specified; otherwise it will be octal.
71
72       Label  will  be interpreted as a pseudo-address for the first byte dis‐
73       played.  It will be shown in ``()'' following the file offset.   It  is
74       intended  to  be  used  with  core  images  to indicate the real memory
75       address.  The syntax for label is identical to that for offset.
76

SEE ALSO

78       adb(1)
79

BUGS

81       A file name argument can't start  with  ``+''.   A  hexadecimal  offset
82       can't be a block count.  Only one file name argument can be given.
83
84       It  is  an  historical botch to require specification of object, radix,
85       and sign representation in a single character argument.
86
87
88
894th Berkeley Distribution       April 29, 1985                           OD(1)
Impressum