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              force ibs=BYTES and obs=BYTES
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
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
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: xM M, c 1, w 2,  b  512,  kB  1000,  K  1024,  MB  1000*1000,  M
56       1024*1024,  GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E,
57       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 fail unless a directory dsync     use synchronized I/O
105              for data sync      likewise, but also for metadata nonblock  use
106              non-blocking I/O noatime   do  not  update  access  time  noctty
107              do  not  assign  controlling terminal from file nofollow  do not
108              follow symlinks
109
110       Sending a USR1 signal to a running `dd' process makes it print I/O sta‐
111       tistics to standard error and then resume copying.
112
113              $ dd if=/dev/zero of=/dev/null& pid=$!
114              $ kill -USR1 $pid; sleep 1; kill $pid
115
116              18335302+0  records  in  18335302+0 records out 9387674624 bytes
117              (9.4 GB) copied, 34.6279 seconds, 271 MB/s
118
119       Options are:
120
121       --help display this help and exit
122
123       --version
124              output version information and exit
125

AUTHOR

127       Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
128

REPORTING BUGS

130       Report bugs to <bug-coreutils@gnu.org>.
131
133       Copyright © 2007 Free Software Foundation, Inc.
134       This is free software.  You may redistribute copies  of  it  under  the
135       terms       of       the      GNU      General      Public      License
136       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
137       extent permitted by law.
138

SEE ALSO

140       The  full  documentation  for dd is maintained as a Texinfo manual.  If
141       the info and dd programs are properly installed at your site, the  com‐
142       mand
143
144              info dd
145
146       should give you access to the complete manual.
147
148
149
150GNU coreutils 6.9                 March 2008                             DD(1)
Impressum