dd.1 (2010 09)
d
dd(1) dd(1)
NAME
dd - convert, reblock, translate, and copy a (tape) file
SYNOPSIS
dd [option=value ] ...
DESCRIPTION
dd copies the specified input file to the specified output file with possible conversions. The standard
input and output are used by default. Input and output block size can be specified to take advantage of
raw physical I/O. Upon completion, dd reports the number of whole and partial input and output
records.
Options
dd recognizes the following option =value pairs:
if=file Input file name; default is standard input.
of=file Output file name; default is standard output. The output file is created using the
same owner and group used by creat()
.
ibs=n Input block size is n bytes; default is 512.
obs=n Output block size is n bytes; default is 512.
bs=n Set both input and output block size to the same size, superseding ibs and obs
.
This option is particularly efficient if no conversion (
conv option) is specified,
because no in-core copy is necessary.
cbs=n Conversion buffer size is n bytes.
skip=n Skip n input blocks before starting copy.
iseek=n Skip n input blocks before starting copy. (This is an alias for the skip option.)
seek=n Skip n blocks from beginning of output file before copying.
oseek=n Skip n blocks from beginning of output file before copying. (This is an alias for the
seek option.)
count=n Copy only n input blocks.
files=n Copy and concatenate n input files. This option should be used only when the input
file is a magnetic tape device.
conv=value [,value ...]
Where value s are comma-separated symbols from the following list.
ascii Convert EBCDIC to ASCII.
ebcdic Convert ASCII to EBCDIC.
ibm Convert ASCII to EBCDIC using an alternate conversion table.
The
ascii, ebcdic, and ibm values are mutually exclusive.
block Convert each newline-terminated or end-of-file-terminated input
record to a record with a fixed length specified by cbs. Any
newline character is removed, and space characters are used to
fill the block to size cbs. Lines that are longer than cbs are
truncated; the number of truncated lines (records) is reported
(see DIAGNOSTICS below).
The
block and unblock values are mutually exclusive.
unblock Convert fixed-length input records to variable-length records.
For each input record, cbs bytes are read, trailing space char-
acters are deleted, and a newline character is appended.
lcase Map upper-case input characters to the corresponding lower-
case characters.
The
lcase and ucase values are mutually exclusive.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1