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 BYTES bytes at a time (also see ibs=,obs=)
17
18       cbs=BYTES
19              convert BYTES bytes at a time
20
21       conv=CONVS
22              convert the file as per the comma separated symbol list
23
24       count=BLOCKS
25              copy only BLOCKS input blocks
26
27       ibs=BYTES
28              read BYTES bytes at a time (default: 512)
29
30       if=FILE
31              read from FILE instead of stdin
32
33       iflag=FLAGS
34              read as per the comma separated symbol list
35
36       obs=BYTES
37              write BYTES bytes at a time (default: 512)
38
39       of=FILE
40              write to FILE instead of stdout
41
42       oflag=FLAGS
43              write as per the comma separated symbol list
44
45       seek=BLOCKS
46              skip BLOCKS obs-sized blocks at start of output
47
48       skip=BLOCKS
49              skip BLOCKS ibs-sized blocks at start of input
50
51       status=noxfer
52              suppress transfer statistics
53
54       BLOCKS  and  BYTES may be followed by the following multiplicative suf‐
55       fixes: c =1, w =2,  b  =512,  kB  =1000,  K  =1024,  MB  =1000*1000,  M
56       =1024*1024,  xM =M GB =1000*1000*1000, G =1024*1024*1024, and so on for
57       T, P, E, Z, Y.
58
59       Each CONV symbol may be:
60
61       ascii  from EBCDIC to ASCII
62
63       ebcdic from ASCII to EBCDIC
64
65       ibm    from ASCII to alternate EBCDIC
66
67       block  pad newline-terminated records with spaces to cbs-size
68
69       unblock
70              replace trailing spaces in cbs-size records with newline
71
72       lcase  change upper case to lower case
73
74       nocreat
75              do not create the output file
76
77       excl   fail if the output file already exists
78
79       notrunc
80              do not truncate the output file
81
82       ucase  change lower case to upper case
83
84       swab   swap every pair of input bytes
85
86       noerror
87              continue after read errors
88
89       sync   pad every input block with NULs  to  ibs-size;  when  used  with
90              block or unblock, pad with spaces rather than NULs
91
92       fdatasync
93              physically write output file data before finishing
94
95       fsync  likewise, but also write metadata
96
97       Each FLAG symbol may be:
98
99       append append  mode  (makes  sense  only  for output; conv=notrunc sug‐
100              gested)
101
102       direct use direct I/O for data
103
104       directory
105              fail unless a directory
106
107       dsync  use synchronized I/O for data
108
109       sync   likewise, but also for metadata
110
111       fullblock
112              accumulate full blocks of input (iflag only)
113
114       nonblock
115              use non-blocking I/O
116
117       noatime
118              do not update access time
119
120       noctty do not assign controlling terminal from file
121
122       nofollow
123              do not follow symlinks
124
125       Sending a USR1 signal to a running `dd' process makes it print I/O sta‐
126       tistics to standard error and then resume copying.
127
128              $ dd if=/dev/zero of=/dev/null& pid=$!
129              $ kill -USR1 $pid; sleep 1; kill $pid
130
131              18335302+0  records  in  18335302+0 records out 9387674624 bytes
132              (9.4 GB) copied, 34.6279 seconds, 271 MB/s
133
134       Options are:
135
136       --help display this help and exit
137
138       --version
139              output version information and exit
140

AUTHOR

142       Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
143

REPORTING BUGS

145       Report dd bugs to bug-coreutils@gnu.org
146       GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
147       General help using GNU software: <http://www.gnu.org/gethelp/>
148       Report dd translation bugs to <http://translationproject.org/team/>
149
151       Copyright © 2010 Free Software Foundation, Inc.   License  GPLv3+:  GNU
152       GPL version 3 or later <http://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       The full documentation for dd is maintained as a  Texinfo  manual.   If
158       the  info and dd programs are properly installed at your site, the com‐
159       mand
160
161              info coreutils 'dd invocation'
162
163       should give you access to the complete manual.
164
165
166
167GNU coreutils 8.5                November 2010                           DD(1)
Impressum