1OD(1) User Commands OD(1)
2
3
4
6 od - dump files in octal and other formats
7
9 od [OPTION]... [FILE]...
10 od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]
11 od --traditional [OPTION]... [FILE] [[+]OFFSET[.][b] [+][LABEL][.][b]]
12
14 Write an unambiguous representation, octal bytes by default, of FILE to
15 standard output. With more than one FILE argument, concatenate them in
16 the listed order to form the input. With no FILE, or when FILE is -,
17 read standard input.
18
19 All arguments to long options are mandatory for short options.
20
21 -A, --address-radix=RADIX
22 decide how file offsets are printed
23
24 -j, --skip-bytes=BYTES
25 skip BYTES input bytes first
26
27 -N, --read-bytes=BYTES
28 limit dump to BYTES input bytes
29
30 -S, --strings[=BYTES]
31 output strings of at least BYTES graphic chars
32
33 -t, --format=TYPE
34 select output format or formats
35
36 -v, --output-duplicates
37 do not use * to mark line suppression
38
39 -w, --width[=BYTES]
40 output BYTES bytes per output line
41
42 --traditional
43 accept arguments in traditional form
44
45 --help display this help and exit
46
47 --version
48 output version information and exit
49
50 Traditional format specifications may be intermixed; they accumulate:
51 -a same as -t a, select named characters, ignoring high-order bit
52
53 -b same as -t o1, select octal bytes
54
55 -c same as -t c, select ASCII characters or backslash escapes
56
57 -d same as -t u2, select unsigned decimal 2-byte units
58
59 -f same as -t fF, select floats
60
61 -i same as -t dI, select decimal ints
62
63 -l same as -t dL, select decimal longs
64
65 -o same as -t o2, select octal 2-byte units
66
67 -s same as -t d2, select decimal 2-byte units
68
69 -x same as -t x2, select hexadecimal 2-byte units
70
71 If first and second call formats both apply, the second format is
72 assumed if the last operand begins with + or (if there are 2 operands)
73 a digit. An OFFSET operand means -j OFFSET. LABEL is the
74 pseudo-address at first byte printed, incremented when dump is pro‐
75 gressing. For OFFSET and LABEL, a 0x or 0X prefix indicates hexadeci‐
76 mal; suffixes may be . for octal and b for multiply by 512.
77
78 TYPE is made up of one or more of these specifications:
79
80 a named character, ignoring high-order bit
81
82 c ASCII character or backslash escape
83
84 d[SIZE]
85 signed decimal, SIZE bytes per integer
86
87 f[SIZE]
88 floating point, SIZE bytes per integer
89
90 o[SIZE]
91 octal, SIZE bytes per integer
92
93 u[SIZE]
94 unsigned decimal, SIZE bytes per integer
95
96 x[SIZE]
97 hexadecimal, SIZE bytes per integer
98
99 SIZE is a number. For TYPE in doux, SIZE may also be C for
100 sizeof(char), S for sizeof(short), I for sizeof(int) or L for
101 sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D
102 for sizeof(double) or L for sizeof(long double).
103
104 RADIX is d for decimal, o for octal, x for hexadecimal or n for none.
105 BYTES is hexadecimal with 0x or 0X prefix, and may have a multiplier
106 suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024, GB
107 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y. Adding
108 a z suffix to any type displays printable characters at the end of each
109 output line. Option --string without a number implies 3; option
110 --width without a number implies 32. By default, od uses -A o -t oS
111 -w16.
112
114 Written by Jim Meyering.
115
117 Report od bugs to bug-coreutils@gnu.org
118 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
119 General help using GNU software: <http://www.gnu.org/gethelp/>
120 Report od translation bugs to <http://translationproject.org/team/>
121
123 Copyright © 2010 Free Software Foundation, Inc. License GPLv3+: GNU
124 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
125 This is free software: you are free to change and redistribute it.
126 There is NO WARRANTY, to the extent permitted by law.
127
129 The full documentation for od is maintained as a Texinfo manual. If
130 the info and od programs are properly installed at your site, the com‐
131 mand
132
133 info coreutils 'od invocation'
134
135 should give you access to the complete manual.
136
137
138
139GNU coreutils 8.4 June 2018 OD(1)