doc/ja_JP.eucJP/man/man1/hexdump.1
SUZUKI Koichi 3947840b05 Catch up with 5.3-BETA1.
Interpretation of a chunk in cut.1
  was helped by: Yoshihiko Sarumaru <mistral@imasy.or.jp>, hrs
2004-09-24 06:50:37 +00:00

343 lines
9.9 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\" Copyright (c) 1989, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)hexdump.1 8.2 (Berkeley) 4/18/94
.\" %FreeBSD: src/usr.bin/hexdump/hexdump.1,v 1.21 2004/07/10 13:11:00 tjr Exp %
.\" $FreeBSD$
.\"
.Dd July 10, 2004
.Dt HEXDUMP 1
.Os
.Sh ̾¾Î
.Nm hexdump , hd
.Nd ASCII, 10¿Ê, 16¿Ê, 8¿Ê¤Ç¤Î¥À¥ó¥×
.Sh ½ñ¼°
.Nm
.Op Fl bcCdovx
.Op Fl e Ar format_string
.Op Fl f Ar format_file
.Op Fl n Ar length
.Bk -words
.Op Fl s Ar skip
.Ek
.Ar
.Nm hd
.Op Fl bcdovx
.Op Fl e Ar format_string
.Op Fl f Ar format_file
.Op Fl n Ar length
.Bk -words
.Op Fl s Ar skip
.Ek
.Ar
.Sh ²òÀâ
.Nm
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¤½¤Î¥Õ¥¡¥¤¥ë¡¢
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ðɸ½àÆþÎϤòÆɤ߹þ¤ß¡¢¥æ¡¼¥¶¤Î»ØÄꤷ¤¿
¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë½¾¤Ã¤Æɽ¼¨¤¹¤ë¥Õ¥£¥ë¥¿¤Ç¤¹¡£
.Pp
¥ª¥×¥·¥ç¥ó¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
.Bl -tag -width Fl
.It Fl b
.Em 1 ¥Ð¥¤¥È 8 ¿Êɽ¼¨¡£
ÆþÎϤΥª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢¼¡¤Ë¡¢
ÆþÎϤÎ1¥Ð¥¤¥È¤º¤Ä¤ò¡¢0 µÍ¤á¤·¤¿ 3 ·å¤Î 8 ¿Ê¿ô¤Ç¡¢1 ¹Ô¤¢¤¿¤ê 16 ¸Ä¡¢
¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¤Þ¤¹¡£
.It Fl c
.Em 1 ¥Ð¥¤¥È ¥­¥ã¥é¥¯¥¿É½¼¨¡£
ÆþÎϤΥª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢¼¡¤Ë¡¢
ÆþÎϤÎ1¥Ð¥¤¥È¤º¤Ä¤ò¡¢¶õÇòµÍ¤á¤·¤¿ 3 ·å¤Î ASCII ʸ»ú¤Ç¡¢1 ¹Ô¤¢¤¿¤ê 16 ¸Ä¡¢
¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¤Þ¤¹¡£
.It Fl C
.Em ɸ½àŪ¤Ê hex+ASCII ɽ¼¨
¡£
ÆþÎÏ¥ª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢
°ú³¤¤¤Æ 16 ¥Ð¥¤¥È¤ò 16 ¿Ê¿ô 2 ·å¤Ç¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¡¢
°ú¤­Â³¤¤¤ÆƱ¤¸ 16 ¥Ð¥¤¥È¤ò %_p ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç ``|'' ʸ»ú¤Ç³ç¤Ã¤Æɽ¼¨¤·¤Þ¤¹¡£
.Pp
¥³¥Þ¥ó¥É
.Nm hd
¤ò¼Â¹Ô¤¹¤ë¤È¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ç
.Nm
¼Â¹Ô¤·¤¿¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
.It Fl d
.Em 2 ¥Ð¥¤¥È 10 ¿Êɽ¼¨
¡£
ÆþÎϤΥª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢¼¡¤Ë¡¢
ÆþÎϤΠ2 ¥Ð¥¤¥È¤º¤Ä¤ò¡¢0 µÍ¤á¤·¤¿ 5 ·å¤Î 10 ¿Ê¿ô¤Ç¡¢1 ¹Ô¤¢¤¿¤ê 8 ¸Ä¡¢
¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¤Þ¤¹¡£
.It Fl e Ar format_string
¥Ç¡¼¥¿¤Îɽ¼¨·Á¼°¤ò·è¤á¤ë¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤ò»ØÄꤷ¤Þ¤¹¡£
.It Fl f Ar format_file
1 ¤Ä¤¢¤ë¤¤¤Ï¤½¤ì°Ê¾å¤Î¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó (²þ¹Ô¤Ç¶èÀÚ¤ë)
¤Î½ñ¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Þ¤¹¡£
¶õ¹Ô¡¢¤ª¤è¤Ó¡¢
¶õÇò¤ò½ü¤¤¤¿ºÇ½é¤Îʸ»ú¤¬
¥Ï¥Ã¥·¥åµ­¹æ
.Pf ( Cm \&# )
¤Ç¤¢¤ë¹Ô¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
.It Fl n Ar length
ÆþÎϤΤ¦¤Á
.Ar length
¥Ð¥¤¥Èʬ¤À¤±¤ò½èÍý¤·¤Þ¤¹¡£
.It Fl o
.Em 2 ¥Ð¥¤¥È 8 ¿Êɽ¼¨
¡£
ÆþÎϤΥª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢¼¡¤Ë¡¢
ÆþÎϤΠ2 ¥Ð¥¤¥È¤º¤Ä¤ò¡¢0 µÍ¤á¤·¤¿ 6 ·å¤Î 8 ¿Ê¿ô¤Ç¡¢1 ¹Ô¤¢¤¿¤ê 8 ¸Ä¡¢
¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¤Þ¤¹¡£
.It Fl s Ar offset
ÆþÎϤÎÀèƬ¤«¤é
.Ar offset
¥Ð¥¤¥È¤òÆɤßÈô¤Ð¤·¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï
.Ar offset
¤Ï 10 ¿Ê¿ô¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£
.Cm 0x
¤Þ¤¿¤Ï
.Cm 0X ,
¤òƬ¤ËÉÕ¤±¤ë¤È
.Ar offset
¤Ï 16 ¿Ê¿ô¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£
¤Þ¤¿¡¢
.Cm 0
¤òƬ¤ËÉÕ¤±¤ë¤È
.Ar offset
¤Ï 8 ¿Ê¿ô¤È¤·¤Æ²ò¼á¤µ¤ì¤Þ¤¹¡£
.Cm b ,
.Cm k ,
.Cm m
¤ò
.Ar offset
¤Î¸å¤í¤Ë¤Ä¤±¤ë¤È¡¢¤½¤ì¤¾¤ì
.Li 512 ,
.Li 1024 ,
.Li 1048576
ÇܤȲò¼á¤µ¤ì¤Þ¤¹¡£
.It Fl v
.Fl v
¥ª¥×¥·¥ç¥ó¤Ï
.Nm
¤ËÂФ·¤Æ¤¹¤Ù¤Æ¤ÎÆþÎϤòɽ¼¨¤µ¤»¤Þ¤¹¡£
.Fl v
¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¡¢Ä¾Á°¤Î¹Ô¤È
ÆâÍÆ (¥ª¥Õ¥»¥Ã¥È¤Ï½ü¤¯) ¤¬Á´¤¯Æ±¤¸¹Ô¤Ï²¿¹Ô¤Ç¤¢¤Ã¤Æ¤â¡¢
¥¢¥¹¥¿¥ê¥¹¥¯ 1 ¸Ä¤Î 1 ¹Ô¤ÇÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£
.It Fl x
.Em 2 ¥Ð¥¤¥È 16 ¿Êɽ¼¨
¡£
ÆþÎϤΥª¥Õ¥»¥Ã¥È¤ò 16 ¿Ê¿ô¤Çɽ¼¨¤·¡¢¼¡¤Ë¡¢
ÆþÎϤΠ2 ¥Ð¥¤¥È¤Å¤Ä¤ò¡¢0 µÍ¤á¤·¤¿ 4 ·å¤Î 16 ¿Ê¿ô¤Ç¡¢1 ¹Ô¤¢¤¿¤ê 8 ¸Ä¡¢
¶õÇò¤Ç¶èÀڤäÆɽ¼¨¤·¤Þ¤¹¡£
.El
.Pp
.Nm
¤Ï¡¢³Æ¡¹¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤ÎÆâÍƤò¡¢¤½¤ì¤é¤¬»ØÄꤵ¤ì¤¿½ç¤Ë¡¢
.Fl e
¤ª¤è¤Ó
.Fl f
¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ»Ø¼¨¤µ¤ì¤¿¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë½¾¤Ã¤ÆÊÑ´¹¤·¤Ê¤¬¤é¡¢
¥·¡¼¥±¥ó¥·¥ã¥ë¤Ëɸ½à½ÐÎϤإ³¥Ô¡¼¤·¤Þ¤¹¡£
.Ss ¥Õ¥©¡¼¥Þ¥Ã¥È
¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ï¡¢Ç¤°Õ¤Î¿ô¤Î¥Õ¥©¡¼¥Þ¥Ã¥Èñ°Ì¤ò¶õÇò¤Ç¶èÀڤäÆ
ʤ٤¿¤â¤Î¤Ç¤¹¡£
¥Õ¥©¡¼¥Þ¥Ã¥Èñ°Ì¤ÏºÇÂç 3 ¸Ä¤Þ¤Ç¤ÎÍ×ÁǤ¹¤Ê¤ï¤Á
·«¤êÊÖ¤·²ó¿ô¡¦¥Ð¥¤¥È¿ô¡¦¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤è¤Ã¤Æ¹½À®¤µ¤ì¤Þ¤¹¡£
.Pp
·«¤êÊÖ¤·²ó¿ô¤ÏÀµ¤ÎÀ°¿ô¤Ç¡¢¾Êά»þ¤ÎÃÍ¤Ï 1 ¤Ç¤¹¡£
¤½¤ì¤¾¤ì¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
¤³¤Î·«¤êÊÖ¤·²ó¿ô¤À¤±Å¬ÍѤµ¤ì¤Þ¤¹¡£
.Pp
¥Ð¥¤¥È¿ô¤âÀµ¤ÎÀ°¿ô¤Ç¡¢¾Êά¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¤Ï
·«¤êÊÖ¤· 1 ²ó¤¢¤¿¤ê¤Ë½èÍý¤µ¤ì¤ë¥Ð¥¤¥È¿ô¤ò¼¨¤·¤Þ¤¹¡£
.Pp
·«¤êÊÖ¤·²ó¿ô¤È¥Ð¥¤¥È¿ô¤Ï¥¹¥é¥Ã¥·¥å (/) ¤Ç¶èÀÚ¤ê¤Þ¤¹¡£
¤É¤Á¤é¤«°ìÊý¤À¤±
»ØÄꤹ¤ë»þ¤â¡¢·«¤êÊÖ¤·²ó¿ô¤Î¾ì¹ç¤Ïľ¸å¡¢¥Ð¥¤¥È¿ô¤Î¾ì¹ç¤ÏľÁ°¤Ë¥¹¥é¥Ã¥·¥å¤ò
ÉÕ¤±¡¢Û£Ëæ¤Ë¤Ê¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡£
¥¹¥é¥Ã¥·¥å¤ÎÁ°¸å¤Ë¤¢¤ë¶õÇò¤Ï̵»ë¤µ¤ì¤Þ¤¹¡£
.Pp
¥Õ¥©¡¼¥Þ¥Ã¥È¤Ïɬ¿Ü¤Ç¤¢¤ê¡¢¥À¥Ö¥ë¥¯¥©¡¼¥È (" ") ¤Ç°Ï¤ß¤Þ¤¹¡£
¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï
fprintf ·Á¼°¤Î¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó (
.Xr fprintf 3
¤ò»²¾È) ¤Ç¤¹¤¬¡¢°Ê²¼¤ÎÎã³°¤¬¤¢¤ê¤Þ¤¹¡£
.Bl -bullet -offset indent
.It
¥Õ¥£¡¼¥ë¥É¤ÎÉý¤¢¤ë¤¤¤ÏÀºÅ٤Ȥ·¤Æ¥¢¥¹¥¿¥ê¥¹¥¯ (*) ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£
.It
``s'' ÊÑ´¹Ê¸»ú¤Ë¤Ï¥Ð¥¤¥È¿ô¤Þ¤¿¤ÏÀºÅÙ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó
(ÀºÅÙ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ïʸ»úÎóÁ´ÂΤòɽ¼¨¤¹¤ë¤È¤¤¤¦
.Xr fprintf 3
¤Î¥Ç¥Õ¥©¥ë¥È¤È¤Ï°Û¤Ê¤ê¤Þ¤¹)¡£
.It
ÊÑ´¹Ê¸»ú ``h'', ``l'', ``n'', ``p'' , ``q'' ¤Ï
¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
.It
C ¤Îɸ½àµ¬³Ê¤ÎÃæ¤Çµ­½Ò¤µ¤ì¤Æ¤¤¤ë
°Ê²¼¤Î 1 ʸ»ú¥¨¥¹¥±¡¼¥×¥·¡¼¥±¥ó¥¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¡£
.Bd -ragged -offset indent -compact
.Bl -column <alert_character>
.It "NUL \e0
.It "<alert character> \ea
.It "<backspace> \eb
.It "<form-feed> \ef
.It "<newline> \en
.It "<carriage return> \er
.It "<tab> \et
.It "<vertical tab> \ev
.El
.Ed
.El
.Pp
.Nm
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¤µ¤é¤Ë°Ê²¼¤ÎÊÑ´¹Ê¸»ú¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¡£
.Bl -tag -width Fl
.It Cm \&_a Ns Op Cm dox
¼¡¤Ëɽ¼¨¤µ¤ì¤ë¥Ð¥¤¥È¤Î¥ª¥Õ¥»¥Ã¥È (Ê£¿ô¤ÎÆþÎÏ¥Õ¥¡¥¤¥ë¤òÄÌ»»¤·¤Æ¤ÎÃÍ)
¤òɽ¼¨¤·¤Þ¤¹¡£
ʸ»ú
.Cm d ,
.Cm o ,
.Cm x
¤òÉղ乤ë¤È¡¢É½¼¨¤ò¤½¤ì¤¾¤ì 10 ¿Ê¡¢8 ¿Ê¡¢16 ¿Ê·Á¼°¤Ë¤·¤Þ¤¹¡£
.It Cm \&_A Ns Op Cm dox
.Cm \&_a
ÊÑ´¹Ê¸»ú¤È¤Û¤ÜƱ¤¸¤Ç¤¹¤¬¡¢¤¹¤Ù¤Æ¤ÎÆþÎϤ¬½èÍý¤µ¤ì¤¿¸å¤Ç°ìÅÙ¤À¤±¼Â¹Ô
¤µ¤ì¤ë¤È¤¤¤¦ÅÀ¤¬°Û¤Ê¤ê¤Þ¤¹¡£
.It Cm \&_c
¥Ç¥Õ¥©¥ë¥È¤Îʸ»ú¥»¥Ã¥ÈÃæ¤Ë¤ª¤±¤ëʸ»ú¤òɽ¼¨¤·¤Þ¤¹¡£
ɽ¼¨ÉÔǽ¤Êʸ»ú¤Ï 0 µÍ¤á¤·¤Æ 3 ·å¤Ë¤·¤¿ 8 ¿Ê¿ô¤Çɽ¼¨¤·¤Þ¤¹¡£
¤¿¤À¤·É¸½à¤Î¥¨¥¹¥±¡¼¥×
ɽµ­ (¾å½Ò) ¤¬¤Ç¤­¤ë¤â¤Î¤Ë¤Ä¤¤¤Æ¤Ï¤½¤Î 2 ʸ»ú¤Çɽ¼¨¤·¤Þ¤¹¡£
.It Cm _p
¥Ç¥Õ¥©¥ë¥È¤Îʸ»ú¥»¥Ã¥ÈÃæ¤Ë¤ª¤±¤ëʸ»ú¤òɽ¼¨¤·¤Þ¤¹¡£
ɽ¼¨ÉÔǽ¤Êʸ»ú¤Ï
.Dq Cm \&.
¤È¤·¤Æɽ¼¨¤·¤Þ¤¹¡£
.It Cm _u
ʸ»ú¥»¥Ã¥È US
.Tn ASCII
Ãæ¤Ç¤Îʸ»ú¤òɽ¼¨¤·¤Þ¤¹¡£
¤¿¤À¤·À©¸æʸ»ú¤Ë¤Ä¤¤¤Æ¤Ï°Ê²¼¤Ë¼¨¤¹¾®Ê¸»ú̾¤Çɽ¼¨¤·¤Þ¤¹¡£
16 ¿Ê¤Ç 0xff ¤è¤êÂ礭¤Êʸ»ú¤Ë
¤Ä¤¤¤Æ¤Ï 16 ¿Êɽµ­¤Îʸ»úÎó¤È¤·¤Æɽ¼¨¤·¤Þ¤¹¡£
.Bl -column \&000_nu \&001_so \&002_st \&003_et \&004_eo
.It "\&000\ NUL\t001\ SOH\t002\ STX\t003\ ETX\t004\ EOT\t005\ ENQ
.It "\&006\ ACK\t007\ BEL\t008\ BS\t009\ HT\t00A\ LF\t00B\ VT
.It "\&00C\ FF\t00D\ CR\t00E\ SO\t00F\ SI\t010\ DLE\t011\ DC1
.It "\&012\ DC2\t013\ DC3\t014\ DC4\t015\ NAK\t016\ SYN\t017\ ETB
.It "\&018\ CAN\t019\ EM\t01A\ SUB\t01B\ ESC\t01C\ FS\t01D\ GS
.It "\&01E\ RS\t01F\ US\t0FF\ DEL
.El
.El
.Pp
³Æ¡¹¤ÎÊÑ´¹Ê¸»ú¤Ë¤Ä¤¤¤Æ¡¢¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥Ð¥¤¥È¿ô¤È¥Ç¥Õ¥©¥ë¥È¤Î
¥Ð¥¤¥È¿ô¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
.Bl -tag -width "Xc,_Xc,_Xc,_Xc,_Xc,_Xc" -offset indent
.It Li \&%_c , \&%_p , \&%_u , \&%c
1 ¥Ð¥¤¥È¤Î¤ß»ÈÍѤǤ­¤Þ¤¹¡£
.It Xo
.Li \&%d , \&%i , \&%o ,
.Li \&%u , \&%X , \&%x
.Xc
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 4 ¥Ð¥¤¥È¤Ç¡¢1 ¥Ð¥¤¥È¡¦2 ¥Ð¥¤¥È¡¦4 ¥Ð¥¤¥È¤¬»ÈÍѤǤ­¤Þ¤¹¡£
.It Xo
.Li \&%E , \&%e , \&%f ,
.Li \&%G , \&%g
.Xc
¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 8 ¥Ð¥¤¥È¤Ç¡¢4 ¥Ð¥¤¥È¤È 12 ¥Ð¥¤¥È¤â»ÈÍѤǤ­¤Þ¤¹¡£
.El
.Pp
³Æ¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë¤è¤Ã¤Æ½èÍý¤µ¤ì¤ë¥Ç¡¼¥¿¤ÎÎ̤ϡ¢
³Æ¥Õ¥©¡¼¥Þ¥Ã¥Èñ°Ì¤¬É¬ÍפȤ¹¤ë¥Ç¡¼¥¿Î̤ιç·×¤Ç¤¢¤ê¡¢¤³¤ì¤Ï
¥Ð¥¤¥È¿ô¤Î·«¤êÊÖ¤·²ó¿ôÇÜ¡¢¤¢¤ë¤¤¤Ï¥Ð¥¤¥È¿ô¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï
¥Õ¥©¡¼¥Þ¥Ã¥È¤ÎɬÍפȤ¹¤ë¥Ð¥¤¥È¿ô¤Î·«¤êÊÖ¤·²ó¿ôÇܤˤʤê¤Þ¤¹¡£
.Pp
ÆþÎÏ¤Ï ``¥Ö¥í¥Ã¥¯'' ¤´¤È¤Ë½èÍý¤µ¤ì¤Þ¤¹¡£
¥Ö¥í¥Ã¥¯¤È¤Ï¡¢¥Õ¥©¡¼¥Þ¥Ã¥È
ʸ»úÎó¤Ë¤è¤Ã¤Æ»ØÄꤵ¤ì¤ë¥Ç¡¼¥¿¤Î²ô¤Î¤¦¤Á¤ÇºÇ¤âÂ礭¤¤¤â¤Î¤Ç¤¹¡£
1 ¥Ö¥í¥Ã¥¯Ê¬¤Î¥Ç¡¼¥¿¤ò½èÍý¤·ÀÚ¤é¤Ê¤¤¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ç¡¢¤½¤ÎÃæ¤Î
ºÇ¸å¤Î¥Õ¥©¡¼¥Þ¥Ã¥Èñ°Ì¤¬²¿¥Ð¥¤¥È¤«¤ò½èÍý¤·¡¢¤«¤Ä·«¤êÊÖ¤·
²ó¿ô¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤Ï¡¢¥Ö¥í¥Ã¥¯Á´ÂΤ¬½èÍý¤µ¤ìÀڤ뤫¡¢
¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë¹çÃפ¹¤ë¥Ç¡¼¥¿¤¬¥Ö¥í¥Ã¥¯Ãæ¤Ë¤Ê¤¯¤Ê¤ë¤Þ¤Ç
·«¤êÊÖ¤·²ó¿ô¤òÁý¤ä¤µ¤ì¤Þ¤¹¡£
.Pp
¥æ¡¼¥¶¤Î»ØÄê¤Þ¤¿¤Ï hexdump ¤¬¾åµ­¤Î¤è¤¦¤Ë·«¤êÊÖ¤·²ó¿ô¤òÊѹ¹¤·¤¿·ë²Ì¡¢
·«¤êÊÖ¤·²ó¿ô¤¬ 1 ¤è¤êÂ礭¤¯¤Ê¤Ã¤¿¾ì¹ç¡¢ºÇ¸å¤Î·«¤êÊÖ¤·¤Ë¤ª¤±¤ë
ËöÈø¤Î¶õÇò¤Ï½ÐÎϤµ¤ì¤Þ¤»¤ó¡£
.Pp
¥Ð¥¤¥È¿ô¤òÊ£¿ô¤ÎÊÑ´¹Ê¸»ú¤È¶¦¤Ë»ØÄꤹ¤ë¤È¡¢1 ¤Ä¤ò½ü¤¤¤¿Á´¤Æ¤ÎÊÑ´¹Ê¸»ú¤¬
.Cm \&_a
¤Þ¤¿¤Ï
.Cm \&_A
¤Ç¤¢¤ë»þ°Ê³°¡¢¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤¹¡£
.Pp
ÆþÎϤ¬¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Î°ìÉôʬ¤·¤«Ëþ¤¿¤·¤Æ¤¤¤Ê¤¤¾õÂÖ¤Ç
.Fl n
¥ª¥×¥·¥ç¥ó¤Ç»ØÄꤷ¤¿¥Ð¥¤¥È¿ô¤¢¤ë¤¤¤ÏEOF¤ËÅþ㤷¤¿¾ì¹ç¡¢
Í­¸ú¤Ê¥Ç¡¼¥¿¤ò¤¹¤Ù¤Æɽ¼¨¤Ç¤­¤ë¤è¤¦¡¢ÆþÎÏ¥Ö¥í¥Ã¥¯¤Ë¤ÏŬÅö¤Ê¿ô¤Î 0 ¤¬
Êä¤ï¤ì¤Þ¤¹¡£(¤¹¤Ê¤ï¤Á¡¢¥Ç¡¼¥¿¤Î½ªÃ¼¤Ë¤Þ¤¿¤¬¤Ã¤Æ¤¤¤ë
¥Õ¥©¡¼¥Þ¥Ã¥Èñ°Ì¤Ï²¿¥Ð¥¤¥È¤«¤Î 0 ¤òɽ¼¨¤·¤Þ¤¹¡£)
.Pp
¤½¤Î¤è¤¦¤Ê¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë¤è¤ë¤µ¤é¤Ê¤ë½ÐÎϤϡ¢Åù¿ô¤Î¶õÇò¤Ç
ÃÖ¤­´¹¤¨¤é¤ì¤Þ¤¹¡£
Åù¿ô¤Î¶õÇò¤È¤Ï¡¢
¤â¤È¤ÎÊÑ´¹Ê¸»ú¤¢¤ë¤¤¤ÏÊÑ´¹Ê¸»úÎó¤È¥Õ¥£¡¼¥ë¥ÉÉý¤ÈÀºÅÙ¤ÏƱ¤¸¤Ç
.Dq Li \&+ ,
.Dq \&\ \& ,
.Dq Li \&#
¤ò¼è¤ê½ü¤¤¤¿
.Cm s
ÊÑ´¹Ê¸»ú¤¬¡¢NULL ʸ»úÎó¤ò»Ø¤·¤¿¾ì¹ç¤Ë½ÐÎϤµ¤ì¤ë¿ô¤Î¶õÇò¤Ç¤¹¡£
.Pp
¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎ󤬻ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Îɽ¼¨·Á¼°¤Ï
.Fl x
¥ª¥×¥·¥ç¥ó¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Î¤â¤Î¤ÈƱ¤¸¤Ë¤Ê¤ê¤Þ¤¹¡£
.Sh ¿ÇÃÇ
.Ex -std hexdump hd
.Sh »ÈÍÑÎã
ÆþÎϤò perusal ·Á¼°¤Çɽ¼¨¤¹¤ë:
.Bd -literal -offset indent
"%06.6_ao " 12/1 "%3_u "
"\et\et" "%_p "
"\en"
.Ed
.Pp
\-x ¥ª¥×¥·¥ç¥ó¤ò¼ÂÁõ:
.Bd -literal -offset indent
"%07.7_Ax\en"
"%07.7_ax " 8/2 "%04x " "\en"
.Ed
.Sh ´ØÏ¢¹àÌÜ
.Xr gdb 1 ,
.Xr od 1