GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XD(1) FreeBSD General Commands Manual XD(1)

xd - hex, octal, decimal, or ASCII dump

xd [ option ... ] [ -format ... ] [ file ... ]

Xd concatenates and dumps the files (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 -c are specified by pairs of characters telling size and style, by default. The sizes are

1 or b
1-byte units.
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

o
Octal.
x
Hexadecimal.
d
Decimal.

Other options are

-c
Format as 1x but print ASCII representations or C escape sequences where possible.
-R
Format as 1x but print Rune representations or C escape sequences where possible.
-astyle
Print file addresses in the given style (and size 4).
-u
(Unbuffered) Flush the output buffer after each 16-byte sequence.
-s
Reverse (swab) the order of bytes in each group of 4 before printing.
-S
Reverse the order of bytes in each group of 8 before printing.
-r
Print repeating groups of identical 16-byte sequences as the first group followed by an asterisk.

/src/cmd/xd.c

The various output formats don't line up properly in the output of xd.

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.