| XD(1) | General Commands Manual | XD(1) |
xd - dump file contents in multiple formats
xd [ option ... ] [ -format ... ] [ file... ]
Xd dumps the contents of each file in one or more formats. If no file is specified, standard input is read. Input is processed in 16 byte chunks. Each chunk is output in each of the specified formats, one format per line. Each line of output is prefixed its file offset. This is zero padded for the first format; subsequent formats are blank padded. If more than one file is specified, the name of each file is output at the start of its dump.
Output formats are specified by a two character name, 4x by default. The first character defines the byte width of the format; the second character defines the style of output.
The available width specifiers are:
The available styles are:
In addition to the above format specifiers, -c can be used to denote ASCII format. This is the same as 1x except that codes are printed as printable ASCII characters or Limbo escape sequences where possible.
There is no means of dumping 2 or 8 byte wide values in little-endian form.