989d921f5d
I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
267 lines
5.9 KiB
Groff
267 lines
5.9 KiB
Groff
.\" Copyright (c) 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.
|
||
.\"
|
||
.\" @(#)od.1 8.1 (Berkeley) 6/6/93
|
||
.\" %FreeBSD: src/usr.bin/hexdump/od.1,v 1.17.2.1 2005/02/26 13:44:04 brueffer Exp %
|
||
.\" $FreeBSD$
|
||
.\"
|
||
.Dd July 11, 2004
|
||
.Os
|
||
.Dt OD 1
|
||
.Sh ̾¾Î
|
||
.Nm od
|
||
.Nd 8¿Ê, 10¿Ê, 16¿Ê, ASCII¤Ç¤Î¥À¥ó¥×
|
||
.Sh ½ñ¼°
|
||
.Nm
|
||
.Op Fl aBbcDdeFfHhIiLlOosvXx
|
||
.Op Fl A Ar base
|
||
.Op Fl j Ar skip
|
||
.Op Fl N Ar length
|
||
.Op Fl t Ar type
|
||
.Sm off
|
||
.Oo
|
||
.Op Cm \&+
|
||
.Li offset
|
||
.Op Cm \&.
|
||
.Op Cm Bb
|
||
.Oc
|
||
.Sm on
|
||
.Op Ar
|
||
.Sh ²òÀâ
|
||
.Nm
|
||
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢¥Õ¥¡¥¤¥ë¤¬»ØÄꤵ¤ì¤Æ¤¤¤ì¤Ð¤½¤Î¥Õ¥¡¥¤¥ë¡¢
|
||
»ØÄꤵ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ðɸ½àÆþÎϤòÆɤ߹þ¤ß¡¢¥æ¡¼¥¶¤Î»ØÄꤷ¤¿
|
||
¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë½¾¤Ã¤Æɽ¼¨¤¹¤ë¥Õ¥£¥ë¥¿¤Ç¤¹¡£
|
||
.Pp
|
||
¥ª¥×¥·¥ç¥ó¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹:
|
||
.Bl -tag -width ".Fl I , L , l"
|
||
.It Fl A Ar base
|
||
ÆþÎÏ¥¢¥É¥ì¥¹¤Î´ð¿ô¤ò»ØÄꤷ¤Þ¤¹¡£
|
||
.Ar base
|
||
¤Ï
|
||
.Cm d ,
|
||
.Cm o ,
|
||
.Cm x ,
|
||
.Cm n
|
||
¤Î¤¤¤º¤ì¤«¤Ç¤¢¤ê¡¢¤½¤ì¤¾¤ì 10 ¿Ê¿ô¡¢8 ¿Ê¿ô¡¢16 ¿Ê¿ô¡¢¥¢¥É¥ì¥¹Ìµ¤·¤ò
|
||
°ÕÌ£¤·¤Þ¤¹¡£
|
||
.It Fl a
|
||
ʸ»ú̾¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar a
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl B , o
|
||
8 ¿Ê¿ô¤Î short ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar o2
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl b
|
||
8 ¿Ê¿ô¤Î byte ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar o1
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl c
|
||
C ¥¹¥¿¥¤¥ë¤Î¥¨¥¹¥±¡¼¥×ʸ»ú¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar c
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl D
|
||
Éä¹æ̵¤· 10 ¿Ê¿ô int ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar u4
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl e , F
|
||
ÇÜÀºÅÙÉâÆ°¾®¿ôÅÀ¿ô¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar fD
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl f
|
||
ñÀºÅÙÉâÆ°¾®¿ôÅÀ¿ô¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar fF
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl H , X
|
||
16 ¿Ê¿ô int ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar x4
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl h , x
|
||
16 ¿Ê¿ô short ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar x2
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl I , L , l
|
||
Éä¹æÉÕ¤ 10 ¿Ê¿ô long ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar dL
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl i
|
||
Éä¹æÉÕ¤ 10 ¿Ê¿ô int ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar dI
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl j Ar skip
|
||
·ë¹ç¤µ¤ì¤¿ÆþÎϤÎ
|
||
.Ar skip
|
||
¥Ð¥¤¥È¤ò¥¹¥¥Ã¥×¤·¤Æ¤«¤é¡¢¥À¥ó¥×¤ò³«»Ï¤·¤Þ¤¹¡£
|
||
¿ôÃͤθå¤Ë¤Ï
|
||
.Cm b ,
|
||
.Cm k ,
|
||
.Cm m
|
||
¤Î¤¤¤º¤ì¤«¤òÉÕ¤±¤ë¤³¤È¤â¤Ç¤¡¢
|
||
¿ôÃͤÎñ°Ì¤ò¥Ö¥í¥Ã¥¯¿ô (512 ¥Ð¥¤¥È)¡¢¥¥í¥Ð¥¤¥È¡¢¥á¥¬¥Ð¥¤¥È¤Ç»ØÄꤷ¤Þ¤¹¡£
|
||
.It Fl N Ar length
|
||
ºÇÂç¤Ç¤âÆþÎϤÎ
|
||
.Ar length
|
||
¥Ð¥¤¥È¤À¤±¥À¥ó¥×¤·¤Þ¤¹¡£
|
||
.It Fl O
|
||
8 ¿Ê¿ô int ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar o4
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl s
|
||
Éä¹æÉÕ¤ 10 ¿Ê¿ô short ¤ò½ÐÎϤ·¤Þ¤¹¡£
|
||
.Fl t Ar d2
|
||
¤ÈƱ¤¸¤Ç¤¹¡£
|
||
.It Fl t Ar type
|
||
½ÐÎϽñ¼°¤ò»ØÄꤷ¤Þ¤¹¡£
|
||
.Ar type
|
||
¤Ï¡¢¼¡¤Î·¿»ØÄê»Ò¤ò 1 ¸Ä°Ê¾å´Þ¤àʸ»úÎó¤Ç¤¹:
|
||
.Bl -tag -width indent
|
||
.It Cm a
|
||
ʸ»ú̾
|
||
.Pq Tn ASCII
|
||
¡£
|
||
À©¸æʸ»ú¤Ï¼¡¤Î̾Á°¤Çɽ¼¨¤µ¤ì¤Þ¤¹:
|
||
.Bl -column "000 NUL" "001 SOH" "002 STX" "003 ETX" "004 EOT" "005 ENQ"
|
||
.It "000 NUL 001 SOH 002 STX 003 ETX 004 EOT 005 ENQ"
|
||
.It "006 ACK 007 BEL 008 BS 009 HT 00a NL 00b VT"
|
||
.It "00c FF 00d CR 00e SO 00f SI 010 DLE 011 DC1"
|
||
.It "012 DC2 013 DC3 014 DC4 015 NAK 016 SYN 017 ETB"
|
||
.It "018 CAN 019 EM 01a SUB 01b ESC 01c FS 01d GS"
|
||
.It "01e RS 01f US 020 SP 0ff DEL"
|
||
.El
|
||
.It Cm c
|
||
¥Ç¥Õ¥©¥ë¥È¤Îʸ»ú½¸¹ç¤Ç¤Îʸ»ú¡£
|
||
ɽ¼¨¤Ç¤¤Ê¤¤Ê¸»ú¤Ï 3 ·å¤Î 8 ¿Ê¿ôʸ»ú¥³¡¼¥É¤Çɽ¸½¤µ¤ì¤Þ¤¹¡£
|
||
¤¿¤À¤·¡¢¼¡¤Îʸ»ú¤Ï C ¥¨¥¹¥±¡¼¥×¤Çɽ¸½¤µ¤ì¤Þ¤¹:
|
||
.Pp
|
||
.Bl -tag -width carriage-return -compact
|
||
.It NUL
|
||
\e0
|
||
.It ·Ù¹ð
|
||
\ea
|
||
.It ¥Ð¥Ã¥¯¥¹¥Ú¡¼¥¹
|
||
\eb
|
||
.It ²þ¹Ô
|
||
\en
|
||
.It Éü²þ
|
||
\er
|
||
.It ¥¿¥Ö
|
||
\et
|
||
.It ¿âľ¥¿¥Ö
|
||
\ev
|
||
.El
|
||
.Pp
|
||
¥Þ¥ë¥Á¥Ð¥¤¥Èʸ»ú¤Ï¡¢Ê¸»ú¤ÎºÇ½é¤Î¥Ð¥¤¥È¤ËÂбþ¤¹¤ëÎΰè¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
||
»Ä¤ê¤Î¥Ð¥¤¥È¤Ï
|
||
.Ql **
|
||
¤Èɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
||
.It Xo
|
||
.Sm off
|
||
.Op Cm d | o | u | x
|
||
.Op Cm C | S | I | L | Ar n
|
||
.Sm on
|
||
.Xc
|
||
Éä¹æÉÕ¤ 10 ¿Ê¿ô
|
||
.Pq Cm d
|
||
¡¢8 ¿Ê¿ô
|
||
.Pq Cm o
|
||
¡¢Éä¹æ̵¤· 10 ¿Ê¿ô
|
||
.Pq Cm u
|
||
¡¢16 ¿Ê¿ô
|
||
.Pq Cm x
|
||
¡£
|
||
¼¡¤Î¤¤¤º¤ì¤«¤Î¥ª¥×¥·¥ç¥ó¤Î¥µ¥¤¥º»ØÄê»Ò¤ò¸å¤ËÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
|
||
.Cm C
|
||
.Pq Vt char ,
|
||
.Cm S
|
||
.Pq Vt short ,
|
||
.Cm I
|
||
.Pq Vt int ,
|
||
.Cm L
|
||
.Pq Vt long ,
|
||
¤Þ¤¿¤Ï 10 ¿Ê¿ôÀ°¿ô¤Ç¤Î¥Ð¥¤¥È¿ô¡£
|
||
.It Xo
|
||
.Sm off
|
||
.Cm f
|
||
.Op Cm F | D | L | Ar n
|
||
.Sm on
|
||
.Xc
|
||
ÉâÆ°¾®¿ôÅÀ¿ô¡£
|
||
¼¡¤Î¤¤¤º¤ì¤«¤Î¥ª¥×¥·¥ç¥ó¤Î¥µ¥¤¥º»ØÄê»Ò¤ò¸å¤ËÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹:
|
||
.Cm F
|
||
.Pq Vt float ,
|
||
.Cm D
|
||
.Pq Vt double ,
|
||
.Cm L
|
||
.Pq Vt "long double"
|
||
¡£
|
||
.El
|
||
.It Fl v
|
||
½ÅÊ£¤¹¤ë¹Ô¤òñ°ì¤Î
|
||
.Ql *
|
||
¤ÇÃÖ¤´¹¤¨¤ë¤«¤ï¤ê¤Ë¤¹¤Ù¤Æ¤ÎÆþÎϤò½ñ¤½Ð¤·¤Þ¤¹¡£
|
||
.El
|
||
.Pp
|
||
½ÐÎϽñ¼°¤ò»ØÄꤹ¤ë¥ª¥×¥·¥ç¥ó¤òÊ£¿ô»ØÄê²Äǽ¤Ç¤¹¡£
|
||
¤³¤Î¾ì¹ç¡¢½ÐÎϤˤϡ¢½ñ¼°Ëè¤Ë¹Ô¤¬Ê̤ˤʤäÆɽ¼¨¤µ¤ì¤Þ¤¹¡£
|
||
.Pp
|
||
½ÐÎϽñ¼°¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
|
||
.Fl t Ar oS
|
||
¤¬²¾Äꤵ¤ì¤Þ¤¹¡£
|
||
.Sh ´Ä¶ÊÑ¿ô
|
||
.Xr environ 7
|
||
¤Ëµ½Ò¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¡¢
|
||
.Ev LANG , LC_ALL , LC_CTYPE
|
||
´Ä¶ÊÑ¿ô¤Ï
|
||
.Nm
|
||
¤Î¼Â¹Ô¤Ë±Æ¶Á¤òµÚ¤Ü¤·¤Þ¤¹¡£
|
||
.Sh ¿ÇÃÇ
|
||
.Ex -std
|
||
.Sh ¸ß´¹À
|
||
ʸ»úÎóÄê¿ô¤ò¼è¤ê½Ð¤¹¤¿¤á¤ÎÅÁÅýŪ¤Ê
|
||
.Fl s
|
||
¥ª¥×¥·¥ç¥ó¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£
|
||
Âå¤ê¤Ë
|
||
.Xr strings 1
|
||
¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤¡£
|
||
.Sh ´ØÏ¢¹àÌÜ
|
||
.Xr hexdump 1 ,
|
||
.Xr strings 1
|
||
.Sh µ¬³Ê
|
||
.Nm
|
||
¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï
|
||
.St -p1003.1-2001
|
||
¤ËŬ¹ç¤·¤Æ¤¤¤Þ¤¹¡£
|
||
.Sh Îò»Ë
|
||
.Nm
|
||
¥³¥Þ¥ó¥É¤Ï
|
||
.At v1
|
||
¤«¤éÅо줷¤Þ¤·¤¿¡£
|