File: od.1

package info (click to toggle)
coreutils 9.10-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 70,560 kB
  • sloc: ansic: 253,546; sh: 30,931; perl: 8,141; yacc: 1,846; makefile: 198; python: 47; sed: 16
file content (174 lines) | stat: -rw-r--r-- 6,804 bytes parent folder | download
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.50.1.
.TH OD "1" "February 2026" "GNU coreutils 9.10" "User Commands"
.SH NAME
od \- dump files in octal and other formats
.SH SYNOPSIS
.B od
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
.br
.B od
[\fI\,-abcdfilosx\/\fR]... [\fI\,FILE\/\fR] [[\fI\,+\/\fR]\fI\,OFFSET\/\fR[\fI\,.\/\fR][\fI\,b\/\fR]]
.br
.B od
\fI\,--traditional \/\fR[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR] [[\fI\,+\/\fR]\fI\,OFFSET\/\fR[\fI\,.\/\fR][\fI\,b\/\fR] [\fI\,+\/\fR][\fI\,LABEL\/\fR][\fI\,.\/\fR][\fI\,b\/\fR]]
.SH DESCRIPTION
.\" Add any additional description here
.PP
Write an unambiguous representation, octal bytes by default,
of FILE to standard output.  With more than one FILE argument,
concatenate them in the listed order to form the input.
.PP
With no FILE, or when FILE is \-, read standard input.
.PP
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 \fB\-j\fR 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.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-A'\fB\-A, \-\-address\-radix=\,RADIX\fP\X'tty: link'\/\fR
output format for file offsets;
RADIX is one of [doxn], for Decimal, Octal, Hex or None
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od--endian'\fB\-\-endian={big|little}\fP\X'tty: link'
swap input bytes according the specified order
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-j'\fB\-j, \-\-skip\-bytes=\,BYTES\fP\X'tty: link'\/\fR
skip BYTES input bytes first
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-N'\fB\-N, \-\-read\-bytes=\,BYTES\fP\X'tty: link'\/\fR
limit dump to BYTES input bytes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-S'\fB\-S BYTES, \-\-strings[=\,BYTES]\fP\X'tty: link'\/\fR
show only NUL terminated strings
of at least BYTES (default 3) printable characters
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-t'\fB\-t, \-\-format=\,TYPE\fP\X'tty: link'\/\fR
select output format or formats
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-v'\fB\-v, \-\-output\-duplicates\fP\X'tty: link'
do not use * to mark line suppression
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-w'\fB\-w[BYTES], \-\-width[=\,BYTES]\fP\X'tty: link'\/\fR
output BYTES bytes per output line;
32 is implied when BYTES is not specified
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od--traditional'\fB\-\-traditional\fP\X'tty: link'
accept arguments in third form above
.TP
\X'tty: link https://www.gnu.org/software/coreutils/od#od--help'\fB\-\-help\fP\X'tty: link'
display this help and exit
.TP
\X'tty: link https://www.gnu.org/software/coreutils/od#od--version'\fB\-\-version\fP\X'tty: link'
output version information and exit
.SS "Traditional format specifications may be intermixed; they accumulate:"
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-a'\fB\-a\fP\X'tty: link'
same as \fB\-t\fR a,  select named characters, ignoring high\-order bit
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-b'\fB\-b\fP\X'tty: link'
same as \fB\-t\fR o1, select octal bytes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-c'\fB\-c\fP\X'tty: link'
same as \fB\-t\fR c,  select printable characters or backslash escapes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-d'\fB\-d\fP\X'tty: link'
same as \fB\-t\fR u2, select unsigned decimal 2\-byte units
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-f'\fB\-f\fP\X'tty: link'
same as \fB\-t\fR fF, select floats
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-i'\fB\-i\fP\X'tty: link'
same as \fB\-t\fR dI, select decimal ints
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-l'\fB\-l\fP\X'tty: link'
same as \fB\-t\fR dL, select decimal longs
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-o'\fB\-o\fP\X'tty: link'
same as \fB\-t\fR o2, select octal 2\-byte units
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-s'\fB\-s\fP\X'tty: link'
same as \fB\-t\fR d2, select decimal 2\-byte units
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#od-x'\fB\-x\fP\X'tty: link'
same as \fB\-t\fR x2, select hexadecimal 2\-byte units
.SS "TYPE is made up of one or more of these specifications:"
.TP
a
named character, ignoring high\-order bit
.TP
c
printable character or backslash escape
.TP
d[SIZE]
signed decimal, SIZE bytes per integer
.TP
f[SIZE]
floating point, SIZE bytes per float
.TP
o[SIZE]
octal, SIZE bytes per integer
.TP
u[SIZE]
unsigned decimal, SIZE bytes per integer
.TP
x[SIZE]
hexadecimal, SIZE bytes per integer
.PP
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 B for Brain 16 bit,
H for Half precision float, F for sizeof(float), D for sizeof(double),
or L for sizeof(long double).
.PP
Adding a z suffix to any type displays printable characters at the end of
each output line.
.SS "BYTES is hex with 0x or 0X prefix, and may have a multiplier suffix:"
.TP
b
512
.TP
KB
1000
.TP
K
1024
.TP
MB
1000*1000
.TP
M
1024*1024
.PP
and so on for G, T, P, E, Z, Y, R, Q.
Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
.SH EXAMPLES
.TP
.B od -A x -t x1z -v
Display hexdump format output
.TP
.B od -A o -t oS -w16
The default output format used by od
.SH AUTHOR
Written by Jim Meyering.
.SH "REPORTING BUGS"
Report bugs to: bug\-coreutils@gnu.org
.br
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
.br
General help using GNU software: <https://www.gnu.org/gethelp/>
.br
Report any translation bugs to <https://translationproject.org/team/>
.SH COPYRIGHT
Copyright \(co 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
Full documentation <https://www.gnu.org/software/coreutils/od>
.br
or available locally via: info \(aq(coreutils) od invocation\(aq