Dd

is Article description::used to copy raw data from source to sink, where source and sink can be a block device, file or piped input/output.

Installation
As part of the GNU, it should be already installed with any Gentoo GNU/Linux system.

Usage
takes input from, optionally manipulates the data, and default writes to.

Examples
Some common tasks where is used:

Boot stick
This should work with any live media as long as the memory stick is large enough.


 * : Defines the source.
 * : Defines the sink.
 * : Defines the block size (amount of data read/written at a time). The default is 512 bytes but most modern devices can read/write much faster. It is possible to define different sizes for source and sink using  and.

Master boot record backup
To backup the master boot record (MBR), copy only the first 512 bytes:


 * : The number of blocks to copy.

Input manipulation
As an example, convert any upper case character in a file to lowercase and reverse the input per line, then pipe the output to to display the file:


 * : Revert the input per line by swapping any input byte (writing backwards).
 * : Convert any upper case letter to lower case. To convert lower case to upper case use.
 * : Continue if a read error occurs.