1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
| [root@localhost Linux_Test]# od --help 用法:od [选项]... [文件]... 或:od [-abcdfilosx]... [文件] [[+]偏移量[.][b]] 或:od --traditional [选项]... [文件] [[+]偏移量[.][b] [+][标签][.][b]]
将指定文件以八进制形式(默认)转储到标准输出。如果指定了多于一个的文件 参数,程序会自动将输入的内容整合为列表并以同样的形式输出。 如果没有指定文件,或指定文件为"-",程序从标准输入读取数据。
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.
Mandatory arguments to long options are mandatory for short options too. -A, --address-radix=RADIX output format for file offsets; RADIX is one of [doxn], for Decimal, Octal, Hex or None -j, --skip-bytes=BYTES skip BYTES input bytes first -N, --read-bytes=BYTES limit dump to BYTES input bytes -S BYTES, --strings[=BYTES] output strings of at least BYTES graphic chars; 3 is implied when BYTES is not specified -t, --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; 32 is implied when BYTES is not specified --traditional accept arguments in third form above --help 显示此帮助信息并退出 --version 显示版本信息并退出
Traditional format specifications may be intermixed; they accumulate: -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 printable characters or backslash escapes -d same as -t u2, select unsigned decimal 2-byte units -f 即 -t fF,指定浮点数对照输出格式 -i 即 -t dl,指定十进制整数对照输出格式 -l 即 -t dL,指定十进制长整数对照输出格式 -o 即 -t o2,指定双字节单位八进制数的对照输出格式 -s 即 -t d2,指定双字节单位十进制数的对照输出格式 -x 即 -t x2,指定双字节单位十六进制数的对照输出格式
TYPE is made up of one or more of these specifications: a named character, ignoring high-order bit c printable character or backslash escape d[尺寸] 有符号十进制数,每个整形数占指定尺寸的字节 f[尺寸] 浮点数,每个整形数占指定尺寸的字节 o[尺寸] 八进制数,每个整形数占指定尺寸的字节 u[尺寸] 无符号十进制数,每个整形数占指定尺寸的字节 x[尺寸] 十六进制数,每个整形数占指定尺寸的字节
SIZE is a number. For TYPE in [doux], 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).
Adding a z suffix to any type displays printable characters at the end of each output line.
BYTES is hex with 0x or 0X prefix, and may have a multiplier suffix: b 512 KB 1000 K 1024 MB 1000*1000 M 1024*1024 and so on for G, T, P, E, Z, Y.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/> 请向<http://translationproject.org/team/zh_CN.html> 报告od 的翻译错误 要获取完整文档,请运行:info coreutils 'od invocation' [root@localhost Linux_Test]#
|