@@ -192,6 +192,116 @@ <h2 id="options"><a class="header" href="#options">Options</a></h2>
192
192
< p > Print version information</ p >
193
193
</ dd >
194
194
</ dl >
195
+ < p > OPERANDS:</ p >
196
+ < pre > < code > bs=BYTES read and write up to BYTES bytes at a time (default: 512);
197
+ overwrites ibs and obs.
198
+ cbs=BYTES the 'conversion block size' in bytes. Applies to
199
+ the conv=block, and conv=unblock operations.
200
+ conv=CONVS a comma-separated list of conversion options or
201
+ (for legacy reasons) file flags.
202
+ count=N stop reading input after N ibs-sized read operations rather
203
+ than proceeding until EOF. See iflag=count_bytes if stopping
204
+ after N bytes is preferred
205
+ ibs=N the size of buffer used for reads (default: 512)
206
+ if=FILE the file used for input. When not specified, stdin is used instead
207
+ iflag=FLAGS a comma-separated list of input flags which specify how the input
208
+ source is treated. FLAGS may be any of the input-flags or
209
+ general-flags specified below.
210
+ skip=N (or iseek=N) skip N ibs-sized records into input before beginning
211
+ copy/convert operations. See iflag=seek_bytes if seeking N bytes
212
+ is preferred.
213
+ obs=N the size of buffer used for writes (default: 512)
214
+ of=FILE the file used for output. When not specified, stdout is used
215
+ instead
216
+ oflag=FLAGS comma separated list of output flags which specify how the output
217
+ source is treated. FLAGS may be any of the output flags or
218
+ general flags specified below
219
+ seek=N (or oseek=N) seeks N obs-sized records into output before
220
+ beginning copy/convert operations. See oflag=seek_bytes if
221
+ seeking N bytes is preferred
222
+ status=LEVEL controls whether volume and performance stats are written to
223
+ stderr.
224
+
225
+ When unspecified, dd will print stats upon completion. An example is below.
226
+ 6+0 records in
227
+ 16+0 records out
228
+ 8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00057009 s, 14.4 MB/s
229
+ The first two lines are the 'volume' stats and the final line is
230
+ the 'performance' stats.
231
+ The volume stats indicate the number of complete and partial
232
+ ibs-sized reads, or obs-sized writes that took place during the
233
+ copy. The format of the volume stats is
234
+ <complete>+<partial>. If records have been truncated (see
235
+ conv=block), the volume stats will contain the number of
236
+ truncated records.
237
+
238
+ Possible LEVEL values are:
239
+ progress: Print periodic performance stats as the copy
240
+ proceeds.
241
+ noxfer: Print final volume stats, but not performance stats.
242
+ none: Do not print any stats.
243
+
244
+ Printing performance stats is also triggered by the INFO signal
245
+ (where supported), or the USR1 signal. Setting the
246
+ POSIXLY_CORRECT environment variable to any value (including an
247
+ empty value) will cause the USR1 signal to be ignored.
248
+ </ code > </ pre >
249
+ < p > CONVERSION OPTIONS:</ p >
250
+ < pre > < code > ascii convert from EBCDIC to ASCII. This is the inverse of the 'ebcdic'
251
+ option. Implies conv=unblock.
252
+ ebcdic convert from ASCII to EBCDIC. This is the inverse of the 'ascii'
253
+ option. Implies conv=block.
254
+ ibm convert from ASCII to EBCDIC, applying the conventions for '[', ']'
255
+ and '~' specified in POSIX. Implies conv=block.
256
+
257
+ ucase convert from lower-case to upper-case
258
+ lcase converts from upper-case to lower-case.
259
+
260
+ block for each newline less than the size indicated by cbs=BYTES, remove
261
+ the newline and pad with spaces up to cbs. Lines longer than cbs are
262
+ truncated.
263
+ unblock for each block of input of the size indicated by cbs=BYTES, remove
264
+ right-trailing spaces and replace with a newline character.
265
+
266
+ sparse attempts to seek the output when an obs-sized block consists of only
267
+ zeros.
268
+ swab swaps each adjacent pair of bytes. If an odd number of bytes is
269
+ present, the final byte is omitted.
270
+ sync pad each ibs-sided block with zeros. If 'block' or 'unblock' is
271
+ specified, pad with spaces instead.
272
+ excl the output file must be created. Fail if the output file is already
273
+ present.
274
+ nocreat the output file will not be created. Fail if the output file in not
275
+ already present.
276
+ notrunc the output file will not be truncated. If this option is not
277
+ present, output will be truncated when opened.
278
+ noerror all read errors will be ignored. If this option is not present, dd
279
+ will only ignore Error::Interrupted.
280
+ fdatasync data will be written before finishing.
281
+ fsync data and metadata will be written before finishing.
282
+ </ code > </ pre >
283
+ < p > INPUT FLAGS:</ p >
284
+ < pre > < code > count_bytes a value to count=N will be interpreted as bytes.
285
+ skip_bytes a value to skip=N will be interpreted as bytes.
286
+ fullblock wait for ibs bytes from each read. zero-length reads are still
287
+ considered EOF.
288
+ </ code > </ pre >
289
+ < p > OUTPUT FLAGS:</ p >
290
+ < pre > < code > append open file in append mode. Consider setting conv=notrunc as well.
291
+ seek_bytes a value to seek=N will be interpreted as bytes.
292
+ </ code > </ pre >
293
+ < p > GENERAL FLAGS:</ p >
294
+ < pre > < code > direct use direct I/O for data.
295
+ directory fail unless the given input (if used as an iflag) or output (if used
296
+ as an oflag) is a directory.
297
+ dsync use synchronized I/O for data.
298
+ sync use synchronized I/O for data and metadata.
299
+ nonblock use non-blocking I/O.
300
+ noatime do not update access time.
301
+ nocache request that OS drop cache.
302
+ noctty do not assign a controlling tty.
303
+ nofollow do not follow system links.
304
+ </ code > </ pre >
195
305
< h2 id ="examples "> < a class ="header " href ="#examples "> Examples</ a > </ h2 >
196
306
< p > Make a bootable USB drive from an isohybrid file (such like < code > archlinux-xxx.iso</ code > ) and show the progress:</ p >
197
307
< pre > < code class ="language-shell "> dd if={{file.iso}} of=/dev/{{usb_drive}} status=progress
0 commit comments