dd
Copy and convert data blocks between files with dry-run preview. Destructive writes; returns JSON of bytes and throughput.
Instructions
Copy and convert data blocks between input and output with bounded preview and dry-run support. Destructive to output: writes data to the destination file. Use --dry_run to preview the operation. Returns JSON with bytes read/written and throughput. Use for block-level data copying and format conversion. Not for simple file copying — use 'cp' for files and directories. See also 'cp', 'truncate'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allow_overwrite | No | Allow replacing an existing output file. | |
| bs | No | Block size in bytes. | |
| count | No | Number of input blocks to copy. | |
| dry_run | No | Report without writing output. | |
| input | No | Input file, or '-' for stdin. | - |
| max_preview_bytes | No | Maximum JSON preview bytes. | |
| output | No | Output file, or '-' for stdout/no file output. | - |
| parents | No | Create missing output parent directories. | |
| raw | No | Write selected input bytes without a JSON envelope. | |
| seek | No | Output blocks to seek before writing. | |
| skip | No | Input blocks to skip. |