| 1 |
dd-about = Copy, and optionally convert, a file system resource |
| 2 |
dd-usage = dd [OPERAND]... |
| 3 |
dd OPTION |
| 4 |
dd-after-help = Operands: |
| 5 |
|
| 6 |
- bs=BYTES : read and write up to BYTES bytes at a time (default: 512); overwrites ibs and obs. |
| 7 |
- cbs=BYTES : the 'conversion block size' in bytes. Applies to the conv=block, and conv=unblock operations. |
| 8 |
- conv=CONVS : a comma-separated list of conversion options or (for legacy reasons) file flags. |
| 9 |
- count=N : stop reading input after N ibs-sized read operations rather than proceeding until EOF. See iflag=count_bytes if stopping after N bytes is preferred |
| 10 |
- ibs=N : the size of buffer used for reads (default: 512) |
| 11 |
- if=FILE : the file used for input. When not specified, stdin is used instead |
| 12 |
- iflag=FLAGS : a comma-separated list of input flags which specify how the input source is treated. FLAGS may be any of the input-flags or general-flags specified below. |
| 13 |
- skip=N (or iseek=N) : skip N ibs-sized records into input before beginning copy/convert operations. See iflag=seek_bytes if seeking N bytes is preferred. |
| 14 |
- obs=N : the size of buffer used for writes (default: 512) |
| 15 |
- of=FILE : the file used for output. When not specified, stdout is used instead |
| 16 |
- oflag=FLAGS : comma separated list of output flags which specify how the output source is treated. FLAGS may be any of the output flags or general flags specified below |
| 17 |
- seek=N (or oseek=N) : seeks N obs-sized records into output before beginning copy/convert operations. See oflag=seek_bytes if seeking N bytes is preferred |
| 18 |
- status=LEVEL : controls whether volume and performance stats are written to stderr. |
| 19 |
|
| 20 |
When unspecified, dd will print stats upon completion. An example is below. |
| 21 |
|
| 22 |
6+0 records in |
| 23 |
16+0 records out |
| 24 |
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00057009 s, |
| 25 |
14.4 MB/s |
| 26 |
|
| 27 |
The first two lines are the 'volume' stats and the final line is the 'performance' stats. The volume stats indicate the number of complete and partial ibs-sized reads, or obs-sized writes that took place during the copy. The format of the volume stats is <complete>+<partial>. If records have been truncated (see conv=block), the volume stats will contain the number of truncated records. |
| 28 |
|
| 29 |
Possible LEVEL values are: |
| 30 |
- progress : Print periodic performance stats as the copy proceeds. |
| 31 |
- noxfer : Print final volume stats, but not performance stats. |
| 32 |
- none : Do not print any stats. |
| 33 |
|
| 34 |
Printing performance stats is also triggered by the INFO signal (where supported), or the USR1 signal. Setting the POSIXLY_CORRECT environment variable to any value (including an empty value) will cause the USR1 signal to be ignored. |
| 35 |
|
| 36 |
Conversion options: |
| 37 |
|
| 38 |
- ascii : convert from EBCDIC to ASCII. This is the inverse of the ebcdic option. Implies conv=unblock. |
| 39 |
- ebcdic : convert from ASCII to EBCDIC. This is the inverse of the ascii option. Implies conv=block. |
| 40 |
- ibm : convert from ASCII to EBCDIC, applying the conventions for [, ] and ~ specified in POSIX. Implies conv=block. |
| 41 |
- ucase : convert from lower-case to upper-case. |
| 42 |
- lcase : convert from upper-case to lower-case. |
| 43 |
- block : for each newline less than the size indicated by cbs=BYTES, remove the newline and pad with spaces up to cbs. Lines longer than cbs are truncated. |
| 44 |
- unblock : for each block of input of the size indicated by cbs=BYTES, remove right-trailing spaces and replace with a newline character. |
| 45 |
- sparse : attempts to seek the output when an obs-sized block consists of only zeros. |
| 46 |
- swab : swaps each adjacent pair of bytes. If an odd number of bytes is present, the final byte is omitted. |
| 47 |
- sync : pad each ibs-sided block with zeros. If block or unblock is specified, pad with spaces instead. |
| 48 |
- excl : the output file must be created. Fail if the output file is already present. |
| 49 |
- nocreat : the output file will not be created. Fail if the output file is not already present. |
| 50 |
- notrunc : the output file will not be truncated. If this option is not present, output will be truncated when opened. |
| 51 |
- noerror : all read errors will be ignored. If this option is not present, dd will only ignore Error::Interrupted. |
| 52 |
- fdatasync : data will be written before finishing. |
| 53 |
- fsync : data and metadata will be written before finishing. |
| 54 |
|
| 55 |
Input flags: |
| 56 |
|
| 57 |
- count_bytes : a value to count=N will be interpreted as bytes. |
| 58 |
- skip_bytes : a value to skip=N will be interpreted as bytes. |
| 59 |
- fullblock : wait for ibs bytes from each read. zero-length reads are still considered EOF. |
| 60 |
|
| 61 |
Output flags: |
| 62 |
|
| 63 |
- append : open file in append mode. Consider setting conv=notrunc as well. |
| 64 |
- seek_bytes : a value to seek=N will be interpreted as bytes. |
| 65 |
|
| 66 |
General flags: |
| 67 |
|
| 68 |
- direct : use direct I/O for data. |
| 69 |
- directory : fail unless the given input (if used as an iflag) or output (if used as an oflag) is a directory. |
| 70 |
- dsync : use synchronized I/O for data. |
| 71 |
- sync : use synchronized I/O for data and metadata. |
| 72 |
- nonblock : use non-blocking I/O. |
| 73 |
- noatime : do not update access time. |
| 74 |
- nocache : request that OS drop cache. |
| 75 |
- noctty : do not assign a controlling tty. |
| 76 |
- nofollow : do not follow system links. |
| 77 |
|
| 78 |
# Common strings |
| 79 |
dd-standard-input = 'standard input' |
| 80 |
dd-standard-output = 'standard output' |
| 81 |
|
| 82 |
# Error messages |
| 83 |
dd-error-failed-to-open = failed to open { $path } |
| 84 |
dd-error-write-error = write error |
| 85 |
dd-error-failed-to-seek = failed to seek in output file |
| 86 |
dd-error-io-error = IO error |
| 87 |
dd-error-cannot-skip-offset = '{ $file }': cannot skip to specified offset |
| 88 |
dd-error-cannot-skip-invalid = '{ $file }': cannot skip: Invalid argument |
| 89 |
dd-error-cannot-seek-invalid = '{ $output }': cannot seek: Invalid argument |
| 90 |
dd-error-not-directory = setting flags for '{ $file }': Not a directory |
| 91 |
dd-error-failed-discard-cache = failed to discard cache for: { $file } |
| 92 |
|
| 93 |
# Parse errors |
| 94 |
dd-error-unrecognized-operand = unrecognized operand '{ $operand }' |
| 95 |
dd-error-multiple-format-table = cannot combine any two of {"{"}ascii,ebcdic,ibm{"}"} |
| 96 |
dd-error-multiple-case = cannot combine lcase and ucase |
| 97 |
dd-error-multiple-block = cannot combine block and unblock |
| 98 |
dd-error-multiple-excl = cannot combine excl and nocreat |
| 99 |
dd-error-invalid-flag = invalid input flag: '{ $flag }' |
| 100 |
dd-error-invalid-output-flag = invalid output flag: '{ $flag }' |
| 101 |
dd-error-conv-flag-no-match = invalid conversion: '{ $flag }' |
| 102 |
dd-error-multiplier-parse-failure = invalid number: '{ $input }' |
| 103 |
dd-error-multiplier-overflow = Multiplier string would overflow on current system -> { $input } |
| 104 |
dd-error-block-without-cbs = conv=block or conv=unblock specified without cbs=N |
| 105 |
dd-error-status-not-recognized = invalid status level: '{ $level }' |
| 106 |
dd-error-unimplemented = feature not implemented on this system -> { $feature } |
| 107 |
dd-error-bs-out-of-range = { $param }=N cannot fit into memory |
| 108 |
dd-error-invalid-number = invalid number: '{ $input }' |
| 109 |
|
| 110 |
# Progress messages |
| 111 |
dd-progress-records-in = { $complete }+{ $partial } records in |
| 112 |
dd-progress-records-out = { $complete }+{ $partial } records out |
| 113 |
dd-progress-truncated-record = { $count -> |
| 114 |
[one] { $count } truncated record |
| 115 |
*[other] { $count } truncated records |
| 116 |
} |
| 117 |
dd-progress-byte-copied = { $bytes } byte copied, { $duration } s, { $rate }/s |
| 118 |
dd-progress-bytes-copied = { $bytes } bytes copied, { $duration } s, { $rate }/s |
| 119 |
dd-progress-bytes-copied-si = { $bytes } bytes ({ $si }) copied, { $duration } s, { $rate }/s |
| 120 |
dd-progress-bytes-copied-si-iec = { $bytes } bytes ({ $si }, { $iec }) copied, { $duration } s, { $rate }/s |
| 121 |
|
| 122 |
# Warnings |
| 123 |
dd-warning-zero-multiplier = { $zero } is a zero multiplier; use { $alternative } if that is intended |
| 124 |
dd-warning-signal-handler = Internal dd Warning: Unable to register signal handler |
| 125 |
|
| 126 |
# Diagnostics |
| 127 |
dd-diag-help-operand = an operand is KEY=VALUE, as in if=file bs=4k count=10 |
| 128 |
dd-diag-label-conv = not a known conversion |
| 129 |
dd-diag-label-iflag = not a known input flag |
| 130 |
dd-diag-label-oflag = not a known output flag |
| 131 |
dd-diag-help-conv = conv= is one of ascii, ebcdic, ibm, lcase, ucase, block, unblock, swab, sync, noerror, sparse, excl, nocreat, notrunc, fdatasync or fsync |
| 132 |
dd-diag-help-iflag = iflag= is one of direct, directory, dsync, sync, nocache, nonblock, noatime, noctty, nofollow, fullblock, count_bytes or skip_bytes |
| 133 |
dd-diag-help-oflag = oflag= is one of direct, directory, dsync, sync, nocache, nonblock, noatime, noctty, nofollow, append or seek_bytes |
| 134 |
dd-diag-help-status = status= is one of none, noxfer or progress |
| 135 |
dd-diag-help-number = a number may be followed by a multiplier: c, w, b, then K, M, G and so on for 1024, kB, MB, GB for 1000 |