od(1) od(1)NAME od - convert binary data to a displayable form in octal, decimal, hexadecimal, or ASCII SYNOPSIS od [-b] [-c] [-d] [-o] [-s] [-x] [file] [[+]offset [.][b]] DESCRIPTION od dumps file in one or more formats as selected by the first argument. If the first argument is missing or an illegal flag option is specified, -o is default. The mean- ings of the format flag options are: -b Interpret bytes in octal. -c Interpret bytes in ASCII. Certain nongraphic charac- ters appear as C escapes: null=\0, backspace=\b, form-feed=\f, newline=\n, return=\r, tab=\t; others ap- pear as 3-digit octal numbers. -d Interpret words in unsigned decimal. -o Interpret words in octal. -s Interpret words in signed decimal. -x Interpret words in hex. 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 inter- preted as octal bytes. If . is appended, the offset is in- terpreted in decimal. If b is appended, the offset is in- terpreted in blocks of 512 bytes. If the file argument is omitted, the offset argument must be preceded by +. Dumping continues until end-of-file. If a file contains many lines of repeating characters, od represents the re- peating lines with an asterisk. EXAMPLES od -d file +2 produces an octal dump of file divided up into 32-bit words expressed in decimal equivalents with the dump starting point offset by 2 octal bytes. FILES /bin/od April, 1990 1
od(1) od(1)SEE ALSO adb(1), dump(1), nm(1), strings(1). 2 April, 1990