1DD(1)                            User Commands                           DD(1)
2
3
4

NAME

6       dd - convert and copy a file
7

SYNOPSIS

9       dd [OPERAND]...
10       dd OPTION
11

DESCRIPTION

13       Copy a file, converting and formatting according to the operands.
14
15       bs=BYTES
16              read and write up to BYTES bytes at a time (default: 512); over‐
17              rides ibs and obs
18
19       cbs=BYTES
20              convert BYTES bytes at a time
21
22       conv=CONVS
23              convert the file as per the comma separated symbol list
24
25       count=N
26              copy only N input blocks
27
28       ibs=BYTES
29              read up to BYTES bytes at a time (default: 512)
30
31       if=FILE
32              read from FILE instead of stdin
33
34       iflag=FLAGS
35              read as per the comma separated symbol list
36
37       obs=BYTES
38              write BYTES bytes at a time (default: 512)
39
40       of=FILE
41              write to FILE instead of stdout
42
43       oflag=FLAGS
44              write as per the comma separated symbol list
45
46       seek=N (or oseek=N) skip N obs-sized output blocks
47
48       skip=N (or iseek=N) skip N ibs-sized input blocks
49
50       status=LEVEL
51              The LEVEL of information to print to stderr;  'none'  suppresses
52              everything  but  error  messages,  'noxfer' suppresses the final
53              transfer statistics, 'progress' shows periodic transfer  statis‐
54              tics
55
56       N  and  BYTES may be followed by the following multiplicative suffixes:
57       c=1, w=2, b=512,  kB=1000,  K=1024,  MB=1000*1000,  M=1024*1024,  xM=M,
58       GB=1000*1000*1000, G=1024*1024*1024, and so on for T, P, E, Z, Y, R, Q.
59       Binary prefixes can be used, too: KiB=K, MiB=M, and so on.  If  N  ends
60       in 'B', it counts bytes not blocks.
61
62       Each CONV symbol may be:
63
64       ascii  from EBCDIC to ASCII
65
66       ebcdic from ASCII to EBCDIC
67
68       ibm    from ASCII to alternate EBCDIC
69
70       block  pad newline-terminated records with spaces to cbs-size
71
72       unblock
73              replace trailing spaces in cbs-size records with newline
74
75       lcase  change upper case to lower case
76
77       ucase  change lower case to upper case
78
79       sparse try to seek rather than write all-NUL output blocks
80
81       swab   swap every pair of input bytes
82
83       sync   pad  every  input  block  with  NULs to ibs-size; when used with
84              block or unblock, pad with spaces rather than NULs
85
86       excl   fail if the output file already exists
87
88       nocreat
89              do not create the output file
90
91       notrunc
92              do not truncate the output file
93
94       noerror
95              continue after read errors
96
97       fdatasync
98              physically write output file data before finishing
99
100       fsync  likewise, but also write metadata
101
102       Each FLAG symbol may be:
103
104       append append mode (makes sense  only  for  output;  conv=notrunc  sug‐
105              gested)
106
107       direct use direct I/O for data
108
109       directory
110              fail unless a directory
111
112       dsync  use synchronized I/O for data
113
114       sync   likewise, but also for metadata
115
116       fullblock
117              accumulate full blocks of input (iflag only)
118
119       nonblock
120              use non-blocking I/O
121
122       noatime
123              do not update access time
124
125       nocache
126              Request to drop cache.  See also oflag=sync
127
128       noctty do not assign controlling terminal from file
129
130       nofollow
131              do not follow symlinks
132
133       Sending a USR1 signal to a running 'dd' process makes it print I/O sta‐
134       tistics to standard error and then resume copying.
135
136       Options are:
137
138       --help display this help and exit
139
140       --version
141              output version information and exit
142

AUTHOR

144       Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
145

REPORTING BUGS

147       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
148       Report any translation bugs to <https://translationproject.org/team/>
149
151       Copyright © 2023 Free Software Foundation, Inc.   License  GPLv3+:  GNU
152       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
153       This  is  free  software:  you  are free to change and redistribute it.
154       There is NO WARRANTY, to the extent permitted by law.
155

SEE ALSO

157       Full documentation <https://www.gnu.org/software/coreutils/dd>
158       or available locally via: info '(coreutils) dd invocation'
159
160
161
162GNU coreutils 9.3               September 2023                           DD(1)
Impressum