maux
Star on GitHub Buy me a coffee

Manual / dd

dd(1)

DD(1) General Commands Manual DD(1)

dd - copy files in blocks

dd [option=value ...]

Dd copies the specified input file to the specified output. The standard input and output are used by default. The input and output block size may be specified.

Input file.
Output file. By default it is replaced with a new ProDOS BIN file.
Input/output block size in bytes, 1 through 4096; default 512.
Copy at most n input blocks, rather than continuing until end of input.
Skip n blocks of the input file before copying.
Seek n blocks into the output file before copying.
Open the existing output without replacing it or shortening it.

After completion, dd reports the number of whole and partial input and output blocks. For example:

dd if=input of=copy bs=512

All numbers are decimal, without suffixes. Skip and seek require named files and must fit a 24-bit byte offset. Do not use the same file as input and output in the default replacing mode.

/usr/man/DD this page

cp(1), bpatch(1), licenses(1)

Exit status is 0 on success, 1 for I/O failures, 2 for invalid operands.

No raw-device copying, independent ibs/obs sizes, character conversions, noerror or sync mode. Block counts are limited to 65535. This command is on its dedicated development image, not the ordinary play command roster.

September 19, 2026 maux