xd – hex, octal, decimal, or ASCII dump
concatenates and dumps the
(standard input by default)
in one or more formats.
Groups of 16 bytes are printed in each of the named formats, one
format per line.
Each line of output is prefixed by its address (byte offset)
in the input file.
The first line of output for each group is zero-padded; subsequent are blank-padded.
Formats other than
are specified by pairs of characters telling size and style,
The sizes are
1 or b
2 or w
2-byte big-endian units.
4 or l
4-byte big-endian units.
8 or v
8-byte big-endian units.
The styles are
Other options are
representations or C escape sequences where possible.
Print file addresses in the given style (and size 4).
(Unbuffered) Flush the output buffer after each 16-byte sequence.
Switch to little-endian units.
Print repeating groups of identical 16-byte sequences as the first group
followed by an asterisk.
The various output formats don’t line up properly in the output of