Name
dd
Synopsis
dd [option
=value
]
Make a copy of an input file (if=
), or standard input if no named
input file, using the specified conditions, and send the results
to the output file (or standard output if of
is not specified). Any number of
options can be supplied, although if
and of
are the most common and are usually
specified first. Because dd can
handle arbitrary block sizes, it is useful when converting between
raw physical devices.
Tip
Although dd provides options for ASCII/EBCDIC conversions, iconv is better suited to that task.
Options
-
bs=
n
Set input and output block size to n bytes; this option supersedes
ibs
andobs
.-
cbs=
n
Set the size of the conversion buffer (logical record length) to n bytes. Use only if the conversion flag is
block
orunblock
, or one of the ASCII/EBCDIC conversions.-
conv=
flags
Convert the input according to one or more (comma-separated) flags listed below. The first nine flags are mutually exclusive. The next two are mutually exclusive with each other, as are the following two.
|
EBCDIC to ASCII. |
|
EBCDIC to ASCII, using BSD-compatible conversions. Solaris only. |
|
EBCDIC to ASCII, using BSD-compatible conversions. Mac OS X only. |
|
ASCII to EBCDIC. |
|
ASCII to EBCDIC, using BSD-compatible conversions. Solaris only. |
|
ASCII to EBCDIC, using BSD-compatible conversions. Mac OS X only. |
|
ASCII to EBCDIC with IBM conventions. |
|
ASCII to EBCDIC with IBM conventions, using BSD-compatible ... |
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.