67 lines
1.5 KiB

.Dd February 2, 2015
.Dt DD 1
.Os ubase
.Nm dd
.Nd convert and copy a file
.Op Ar operand...
copies the standard input to the standard output. By default input data is
read and written in 64kB blocks. When finished,
displays the number of records read and written as well as the total number
of bytes copied.
syncs the filesystem once it is done copying. If you want to disable that use
.Ar nosync
.Bl -tag -width Ds
.It Ar bs Ns Op Ar =N
.Ar bs
is not specified, the default blocksize is 64kB. If
.Ar bs
is specified
without setting it to a specific value then an optimal value between the
source and target filesystem will be selected. If this process fails it will
fallback to the system's pagesize. Adjust
.Ar N
to set the block size of the transfers in bytes.
.It Ar count=N
Copy only
.Ar N
input blocks.
.It Ar direct
Use direct I/O for data.
.It Ar if=file
Read input from
.Ar file
instead of the standard input.
.It Ar nosync
Do not sync the filesystem once we are done copying.
.It Ar quiet
Enable quiet output.
.It Ar of=file
Write output to
.Ar file
instead of the standard output. If an initial portion of the output
.Ar file
is skipped using the seek operand, the output file is truncated at that
.It Ar seek=N
.Ar N
blocks from the beginning of the output before copying.
.It Ar skip=N
.Ar N
blocks from the beginning of the input before copying.
.It Ar conv=notrunc
Do not truncate the output file.