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.
17
18 With no FILE, or when FILE is -, read standard input.
19
20 If first and second call formats both apply, the second format is as‐
21 sumed if the last operand begins with + or (if there are 2 operands) a
22 digit. An OFFSET operand means -j OFFSET. LABEL is the pseudo-address
23 at first byte printed, incremented when dump is progressing. For OFF‐
24 SET and LABEL, a 0x or 0X prefix indicates hexadecimal; suffixes may be
25 . for octal and b for multiply by 512.
26
27 Mandatory arguments to long options are mandatory for short options
28 too.
29
30 -A, --address-radix=RADIX
31 output format for file offsets; RADIX is one of [doxn], for Dec‐
32 imal, Octal, Hex or None
33
34 --endian={big|little}
35 swap input bytes according the specified order
36
37 -j, --skip-bytes=BYTES
38 skip BYTES input bytes first
39
40 -N, --read-bytes=BYTES
41 limit dump to BYTES input bytes
42
43 -S BYTES, --strings[=BYTES]
44 output strings of at least BYTES graphic chars; 3 is implied
45 when BYTES is not specified
46
47 -t, --format=TYPE
48 select output format or formats
49
50 -v, --output-duplicates
51 do not use * to mark line suppression
52
53 -w[BYTES], --width[=BYTES]
54 output BYTES bytes per output line; 32 is implied when BYTES is
55 not specified
56
57 --traditional
58 accept arguments in third form above
59
60 --help display this help and exit
61
62 --version
63 output version information and exit
64
65 Traditional format specifications may be intermixed; they accumulate:
66 -a same as -t a, select named characters, ignoring high-order bit
67
68 -b same as -t o1, select octal bytes
69
70 -c same as -t c, select printable characters or backslash escapes
71
72 -d same as -t u2, select unsigned decimal 2-byte units
73
74 -f same as -t fF, select floats
75
76 -i same as -t dI, select decimal ints
77
78 -l same as -t dL, select decimal longs
79
80 -o same as -t o2, select octal 2-byte units
81
82 -s same as -t d2, select decimal 2-byte units
83
84 -x same as -t x2, select hexadecimal 2-byte units
85
86 TYPE is made up of one or more of these specifications:
87 a named character, ignoring high-order bit
88
89 c printable character or backslash escape
90
91 d[SIZE]
92 signed decimal, SIZE bytes per integer
93
94 f[SIZE]
95 floating point, SIZE bytes per float
96
97 o[SIZE]
98 octal, SIZE bytes per integer
99
100 u[SIZE]
101 unsigned decimal, SIZE bytes per integer
102
103 x[SIZE]
104 hexadecimal, SIZE bytes per integer
105
106 SIZE is a number. For TYPE in [doux], SIZE may also be C for
107 sizeof(char), S for sizeof(short), I for sizeof(int) or L for
108 sizeof(long). If TYPE is f, SIZE may also be F for sizeof(float), D
109 for sizeof(double) or L for sizeof(long double).
110
111 Adding a z suffix to any type displays printable characters at the end
112 of each output line.
113
114 BYTES is hex with 0x or 0X prefix, and may have a multiplier suffix:
115 b 512
116
117 KB 1000
118
119 K 1024
120
121 MB 1000*1000
122
123 M 1024*1024
124
125 and so on for G, T, P, E, Z, Y. Binary prefixes can be used, too:
126 KiB=K, MiB=M, and so on.
127
129 od -A x -t x1z -v
130 Display hexdump format output
131
132 od -A o -t oS -w16
133 The default output format used by od
134
136 Written by Jim Meyering.
137
139 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
140 Report any translation bugs to <https://translationproject.org/team/>
141
143 Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU
144 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
145 This is free software: you are free to change and redistribute it.
146 There is NO WARRANTY, to the extent permitted by law.
147
149 Full documentation <https://www.gnu.org/software/coreutils/od>
150 or available locally via: info '(coreutils) od invocation'
151
152
153
154GNU coreutils 9.1 May 2023 OD(1)