conv=value[,value …
| IBM to unix
| unblock Treats the input as a sequence of fixed length records
independent of input and output block boundaries as specified by cbs=b .
Trailing spaces are discarded and a new-line character is appended.
|
ascii,
oldascii as with unblock,
in addition characters are translated from EBCDIC to ASCII before the records are converted. Implies unblock if cbs is also specified.)
ascii (recommended) compatible with AT&T System V UNIX.
oldascii historic AT&T UNIX and pre-4.3BSD-Reno systems.
| | unix to IBM
| block Treats the input as a sequence of newline or end-of-file terminated variable
length records independent of input and output block boundaries.
Trailing newline character is discarded.
Input record is converted to a fixed length output record as specified by cbs=b.
by padding with spaces or truncated.
The number of truncated records, are reported to the standard error output at the completion of the copy.
|
ebcdic,
ibm, oldebcdic,
oldibm as with block in addition characters are translated from
ASCII† to EBCDIC
(Implies block if cbs=b is also specified.)
ebcdic specifies the recommended one which is compatible with AT&T System V UNIX.
ibm is slightly different compatible with the AT&T System V UNIX .
oldebcdic and
oldibm are used in historic AT&T UNIX and pre-4.3BSD-Reno systems.
| lcase | Transform uppercase characters into lowercase
| ucase| Transform lowercase characters into uppercase characters.
| swab yes it's a B Swap every pair of input bytes.
| sync Pad input block to the input buffer size with spaces
if a block oriented conversion,
otherwise NUL bytes are used.
| osync Pad the final output block to the output block size.
If the input file is not a multiple of the output block size after conversion,
forces the final output block to be the same size as preceding blocks for
use on devices that require regularly sized blocks to be written.
Incompatible with use of the bs=b
| | Misc options
|
|---|
noerror Do not stop processing on an input error. rather a
diagnostic message followed by the current input and output block counts
will be written to the standard error output .
If sync is also specified, missing input data will be replaced with NUL bytes
(or with spaces if a block oriented conversion was specified) and processed as a normal
input buffer.
If sync is not specified, the input block is omitted from the output.
On input files which are not tapes or pipes, the file offset will be positioned past the block in which the error occurred using lseek(2).
| notrunc Do not truncate the output file
rather preserve any blocks in the output file not explicitly written by dd,
not supported for tapes.
sparse If one or more output blocks would consist solely of NUL bytes,
try to seek the output file by the required space instead of filling them with NULs,
resulting in a sparse file.
| | | | | | | | | |
| | | |
Where sizes are specified, a decimal, octal, or hexadecimal number of bytes is expected. If
the number ends with a b, k, m, g, or w, the number is multiplied by 512,
1,024 (1K), 1,048,576 (1M), 1,073,741,824 (1G) or the number of bytes in an integer, respectively.
Two or more numbers may be separated by an x to indicate a product.
When finished, dd displays the number of complete and partial input and output blocks, trun-
cated input records and odd-length byte-swapping blocks to the standard error output. A par-
tial input block is one where less than the input block size was read. A partial output block
is one where less than the output block size was written. Partial output blocks to tape
devices are considered fatal errors. Otherwise, the rest of the block will be written. Par-
tial output blocks to character devices will produce a warning message. A truncated input
block is one where a variable length record oriented conversion value was specified and the
input line was too long to fit in the conversion record or was not newline terminated.
Normally, data resulting from input or conversion or both are aggregated into output blocks of
the specified size. After the end of input is reached, any remaining output is written as a
block. This means that the final output block may be shorter than the output block size.
If dd receives a SIGINFO ( aka sigstat default ^t see the status argument for stty signal, the current input and
output block counts will be written to the standard error output in the same format as the
standard completion message.
If dd receives a SIGINT signal it behaves as if the end of the input had been reached.
DIAGNOSTICS
exits 0 on success, and >0 if an error occurs.
^t
load: 0.19 cmd: dd 89246 running 0.32u 1.99s
329272+0 records in
329272+0 records out
168587264 bytes transferred in 6.675876 secs (25253204 bytes/sec)
SEE ALSO
cp(copy), trtranslate
STANDARDS
The dd utility is expected to be a superset of the IEEE Std 1003.2 (POSIX.2) standard.
The files operand and the ascii, ebcdic, ibm, oldascii, oldebcdic and oldibm values are extensions to the POSIX standard.
|