Skip to content
EntityQ310581· pop 28· linked from 298 articles

command on Unix and Unix-like operating systems

In the Vinony graph

Within Vinony's link graph, dd is referenced by 298 other articles, and connects out to byte, command-line interface and list of UNIX commands.

It sits within the topics Data erasure software, Data recovery software and Disk cloning.

Its subject is documented across 28 Wikipedia language editions.

Described at

The dd utility shall copy the specified input file to the specified output file with possible conversions using specific input and output block sizes. It shall read the input one block at a time, using the specified input block size; it shall then process the block of data actually returned, which could be smaller than the requested block size. It shall apply any conversions that have been specified and write the resulting data to the output in blocks of the specified output block size. If the bs = expr operand is specified and no conversions other than sync , noerror , or notrunc are requested, the data returned from each input block shall be written as a separate output block; if the read returns less than a full block and the sync conversion is not specified, the resulting output block shall be the same size as the input block. If the bs = expr operand is not specified, or a conversion other than sync , noerror , or notrunc is requested, the input shall be processed and collected into full-sized output blocks until the end of the input is reached. 2. If the input block is shorter than the specified input block size and the sync conversion is specified, null bytes shall be appended to the input data up to the specified size. (If either block or unblock is also specified, characters shall be appended instead of null bytes.) The remaining conversions and output shall include the pad characters as if they had been read from the input. 6. The data resulting from input or conversion or both shall be aggregated into output blocks of the specified size. After the end of input is reached, any remaining output shall be written as a block without padding if conv = sync is not specified; thus, the final output block may be shorter than the output block size. All of the operands shall be processed before any input is read. The following operands shall be supported: Specify the output pathname; the default is standard output. If the seek = expr conversion is not also specified, the output file shall be truncated before the copy begins if an explicit of = file operand is specified, unless conv = notrunc is specified. If seek = expr is specified, but conv = notrunc is not, the effect of the copy shall be to preserve the blocks in the output file over which dd seeks, but no other portion of the output file shall be preserved. (If the size of the seek plus the size of the input file is less than the previous size of the output file, the output file shall be shortened by the copy. If the input file is empty and either the size of the seek is greater than the previous size of the output file or the output file did not previously exist, the size of the output file shall be set to the file offset after the seek.) Specify the input block size, in bytes, by expr (default is 512). Specify the output block size, in bytes, by expr (default is 512). [XSI) ] ![[Option Start]]( The application shall ensure that this operand is also specified if the conv = operand is specified with a value of ascii , ebcdic , or ibm . For a conv = operand with an ascii value, the input is handled as described for the unblock value, except that characters are converted to ASCII before any trailing characters are deleted. For conv = operands with ebcdic or ibm values, the input is handled as described for the block value except that the characters are converted to EBCDIC or IBM EBCDIC, respectively, after any trailing characters are added. ![[Option End]]( Skip n input blocks (using the specified input block size) before starting to copy. On seekable files, the implementation shall read the blocks or seek past them; on non-seekable files, the blocks shall be read and the data shall be discarded. Skip n blocks (using the specified output block size) from the beginning of the output file before copying. On non-seekable files, existing blocks shall be read and space from the current end-of-file to the specified offset, if any, filled with null bytes; on seekable file

Excerpt from a page describing this subject · 24,854 chars · not written by Vinony

Wikidata facts

Show 2 more facts
Sources (3)

via Wikidata · CC0

Categories