od [OPTION]... [FILE]...
od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
选件
注意:--long选项的所有参数对于-short选项都是必需的。
-A RADIX,--address-radix= RADIX
|
决定如何打印文件偏移
|
-j BYTES,--skip-bytes=BYTES
|
首先跳过字节输入字节
|
-N BYTES,--read-bytes=BYTES
|
将转储限制为BYTES输入字节
|
-S BYTES,--strings[ = BYTES ]
|
输出至少BYTES图形字符的字符串
|
-t TYPE,--format= TYPE
|
选择一种或多种输出格式
|
-v,--output-duplicates
|
不要使用*标记行抑制
|
-w [ BYTES ],--width [ = BYTES ]
|
每条输出线输出字节字节
|
--traditional
|
接受传统形式的论点
|
--help
|
显示帮助并退出
|
--version
|
显示版本信息并退出
|
格式规格
-a
|
与-ta相同,选择命名字符,忽略高位
|
-b
|
与-t o1相同,选择八进制字节
|
-c
|
与-tc相同,选择ASCII字符或反斜杠转义
|
-d
|
与-t u2相同,选择无符号十进制2字节单位
|
-f
|
与-t fF相同,选择浮点数
|
-i
|
与-t dI相同,选择十进制整数
|
-l
|
与-t dL相同,选择十进制长
|
-o
|
与-t o2相同,选择八进制2字节单位
|
-s
|
与-t d2相同,选择十进制2字节单位
|
-x
|
与-t x2相同,选择十六进制2字节单位
|
如果第一个和第二个调用格式都适用,则如果最后一个操作数以“ + ”开头或(如果有2个操作数)一个数字,则采用第二种格式。一个OFFSET操作手段-J 偏移。LABEL是打印的第一个字节的伪地址,在转储进行时递增。对于OFFSET和LABEL,0x或0X前缀表示十六进制;后缀可以是“。” 八进制,b乘以512。
TYPE由以下一项或多项规范组成:
a
|
命名字符,忽略高位
|
c
|
ASCII字符或反斜杠转义
|
d[SIZE]
|
有符号十进制,每个整数SIZE个字节
|
f[SIZE]
|
浮点数,每个整数SIZE个字节
|
o[SIZE]
|
八进制,每个整数SIZE个字节
|
u[SIZE]
|
无符号十进制,每个整数SIZE个字节
|
x[SIZE]
|
十六进制,每个整数SIZE个字节
|
SIZE是一个数字。对于TYPE在d/o/u/x,SIZE也可以是C用于sizeof(char)的,S用于sizeof(短),I用于sizeof(int)的或L用于sizeof(长)。如果TYPE是f,则对于sizeof(float)而言,SIZE也可以是F,对于sizeof(double)来说可以是D,对于sizeof(long double)来说可以是L。
RADIX是d代表十进制,o代表八进制,x代表十六进制,n代表无。BYTES是带有0x或0X前缀的十六进制,并且可以具有乘数后缀:b 512,kB 1000,K 1024,MB 1000 * 1000,M 1024 * 1024,GB 1000 * 1000 * 1000,G 1024 * 1024 * 1024和对于T,P,E,Z,Y等等。向任何类型添加z后缀会在每行输出的末尾显示可打印的字符。选项-不带数字的字符串表示3; option --width不带数字表示32。默认情况下,od使用-A o -t oS -w16。
od [OPTION]... [FILE]...
od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
Options
Note: all arguments to --long options are mandatory for -short options.
-A RADIX, --address-radix=RADIX
|
decide how file offsets are printed
|
-j BYTES, --skip-bytes=BYTES
|
skip BYTES input bytes first
|
-N BYTES, --read-bytes=BYTES
|
limit dump to BYTES input bytes
|
-S BYTES, --strings[=BYTES]
|
output strings of at least BYTES graphic chars
|
-t TYPE, --format=TYPE
|
select output format or formats
|
-v, --output-duplicates
|
do not use * to mark line suppression
|
-w[BYTES], --width[=BYTES]
|
output BYTES bytes per output line
|
--traditional
|
accept arguments in traditional form
|
--help
|
display help and exit
|
--version
|
display version information and exit
|
Format Specifications
-a
|
same as -t a, select named characters, ignoring high-order bit
|
-b
|
same as -t o1, select octal bytes
|
-c
|
same as -t c, select ASCII characters or backslash escapes
|
-d
|
same as -t u2, select unsigned decimal 2-byte units
|
-f
|
same as -t fF, select floats
|
-i
|
same as -t dI, select decimal ints
|
-l
|
same as -t dL, select decimal longs
|
-o
|
same as -t o2, select octal 2-byte units
|
-s
|
same as -t d2, select decimal 2-byte units
|
-x
|
same as -t x2, select hexadecimal 2-byte units
|
If first and second call formats both apply, the second format is assumed if the last operand begins with "+" or (if there are 2 operands) a digit. An OFFSET operand means -j OFFSET. LABEL is the pseudo-address at first byte printed, incremented when dump is progressing. For OFFSET and LABEL, a 0x or 0X prefix indicates hexadecimal; suffixes may be "." for octal and b for multiply by 512.
TYPE is made up of one or more of these specifications:
a
|
named character, ignoring high-order bit
|
c
|
ASCII character or backslash escape
|
d[SIZE]
|
signed decimal, SIZE bytes per integer
|
f[SIZE]
|
floating point, SIZE bytes per integer
|
o[SIZE]
|
octal, SIZE bytes per integer
|
u[SIZE]
|
unsigned decimal, SIZE bytes per integer
|
x[SIZE]
|
hexadecimal, SIZE bytes per integer
|
SIZE is a number. For TYPE in d/o/u/x, SIZE may also be C for sizeof(char), S for sizeof(short), I for sizeof(int) or L for sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D for sizeof(double) or L for sizeof(long double).
RADIX is d for decimal, o for octal, x for hexadecimal or n for none. BYTES is hexadecimal with 0x or 0X prefix, and may have a multiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y. Adding a z suffix to any type displays printable characters at the end of each output line. Option --string without a number implies 3; option --width without a number implies 32. By default, od uses -A o -t oS -w16.