UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: searchChapter 20
Program Debugging
Next: Reference: address
 

addr1/

addr1/

Print contents of memory starting at the address addr1. Stop printing when a second address is reached or when n items have been printed, as shown by the syntax lines below:

addr1, addr2/[mode] addr1/[n] [mode]

mode specifies the output format. Default is X. Addresses may be . (next address), &addr (symbolic address), and $rn (register n). Addresses may include the symbols +, -, and * (indirection).

Mode

b

Print a byte in octal.

c

Print a byte as a character.

d

Print a short word in decimal.

D

Print a long word in decimal.

f

Print a single-precision real number.

F

Print a double-precision real number.

i

Print a machine instruction.

o

Print a short word in octal.

O

Print a long word in octal.

s

Print a string as characters terminated by a null byte.

x

Print a short word in hexadecimal.

X

Print a long word in hexadecimal.


Previous: Reference: searchUNIX in a Nutshell: System V EditionNext: Reference: address
Reference: searchBook IndexReference: address

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System