DD(1) – User Commands
dd – convert and copy a file
| Use Case | Command | Description |
|---|---|---|
| 💾 Backup a disk | dd if=/dev/sda of=/backup/disk.img bs=4M | Reads from source disk and writes to image file |
| 💿 Create bootable USB | dd if=ubuntu.iso of=/dev/sdb bs=1M status=progress | Writes ISO image directly to USB device |
| 🔄 Clone disk | dd if=/dev/sda of=/dev/sdb bs=64K conv=noerror,sync | Copies entire disk, continuing on read errors |
| 🔠 Convert to uppercase | dd if=input.txt of=output.txt conv=ucase | Converts file contents to uppercase |
| 📁 Create zero-filled file | dd if=/dev/zero of=file bs=1M count=10 | Creates a 10 MB file filled with zeros |
| ⚡ Benchmark write speed | dd if=/dev/zero of=test bs=1M count=100 oflag=direct | Measures write performance with direct I/O |
dd [OPERAND]...
dd OPTION
Copy a file, converting and formatting according to the operands.
none suppresses everything but error messages, noxfer suppresses the final transfer statistics, progress shows periodic transfer statisticsN and BYTES may be followed by the following multiplicative suffixes: c=1, w=2, b=512, kB=1000, K=1024, MB=1000*1000, M=1024*1024, xM=M, GB=1000*1000*1000, G=1024*1024*1024, and so on for T, P, E, Z, Y. Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
count=N as a byte count (iflag only)skip=N as a byte count (iflag only)seek=N as a byte count (oflag only)Sending a USR1 signal to a running dd process makes it print I/O statistics to standard error and then resume copying.
Written by Paul Rubin, David MacKenzie, and Stuart Kemp.
GNU coreutils online help: https://www.gnu.org/software/coreutils/
Report any translation bugs to https://translationproject.org/team/
Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
Full documentation https://www.gnu.org/software/coreutils/dd
or available locally via: info '(coreutils) dd invocation'
Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-05 05:31 @216.73.216.89
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format