DD(1)
π DD(1) β the copy-and-convert bestie π
okay so real talk: this is the manual page for dd, living in the General Commands Manual section (section 1, obviously, we stay iconic here). and yeah she's uutils coreutils, so that's the whole vibe.
β¨ NAME β¨
dd β Copy, and optionally convert, a file system resource π¦
π SYNOPSIS π
dd [OPERAND]...
dd OPTION
π DESCRIPTION π
Copy, and optionally convert, a file system resource. that's literally it. that's the whole girl. she copies, she converts if you want, she serves π
π₯ OPTIONS π₯
-h,--helpβ Print help. yes bestie, the classic.-V,--versionβ Print version.[operands]β the actual operands, and there are so many of them, keep reading π
π EXTRA π
β¨ Operands β¨
bs=BYTESβ read and write up toBYTESbytes at a time (default:512); overwritesibsandobs. she overrides them, no discussion πcbs=BYTESβ the 'conversion block size' in bytes. Applies to theconv=block, andconv=unblockoperations.conv=CONVSβ a comma-separated list of conversion options or (for legacy reasons) file flags.count=Nβ stop reading input afterNibs-sized read operations rather than proceeding until EOF. Seeiflag=count_bytesif stopping after N bytes is preferred.ibs=Nβ the size of buffer used for reads (default:512).if=FILEβ the file used for input. When not specified,stdinis used instead.iflag=FLAGSβ a comma-separated list of input flags which specify how the input source is treated.FLAGSmay be any of the input-flags or general-flags specified below.skip=N(oriseek=N) β skipNibs-sized records into input before beginning copy/convert operations. Seeiflag=seek_bytesif seeking N bytes is preferred.obs=Nβ the size of buffer used for writes (default:512).of=FILEβ the file used for output. When not specified,stdoutis used instead.oflag=FLAGSβ comma separated list of output flags which specify how the output source is treated.FLAGSmay be any of the output flags or general flags specified below.seek=N(oroseek=N) β seeksNobs-sized records into output before beginning copy/convert operations. Seeoflag=seek_bytesif seeking N bytes is preferred.status=LEVELβ controls whether volume and performance stats are written tostderr.
When unspecified, dd will print stats upon completion. An example is below. π
6+0 records in
16+0 records out
8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00057009 s,
14.4 MB/s
The first two lines are the 'volume' stats and the final line is the 'performance' stats. The volume stats indicate the number of complete and partial ibs-sized reads, or obs-sized writes that took place during the copy. The format of the volume stats is <complete>+<partial>. If records have been truncated (see conv=block), the volume stats will contain the number of truncated records.
Possible LEVEL values are:
progress: Print periodic performance stats as the copy proceeds.noxfer: Print final volume stats, but not performance stats.none: Do not print any stats.
Printing performance stats is also triggered by the INFO signal (where supported), or the USR1 signal. Setting the POSIXLY_CORRECT environment variable to any value (including an empty value) will cause the USR1 signal to be ignored.
π«Ά fr fr, remember thatPOSIXLY_CORRECTthing β any value, even an empty one, andUSR1just gets ignored, periodt.
π§ Conversion options π§
asciiβ convert from EBCDIC to ASCII. This is the inverse of theebcdicoption. Impliesconv=unblock.ebcdicβ convert from ASCII to EBCDIC. This is the inverse of theasciioption. Impliesconv=block.ibmβ convert from ASCII to EBCDIC, applying the conventions for[,]and~specified in POSIX. Impliesconv=block.ucaseβ convert from lower-case to upper-case.lcaseβ convert from upper-case to lower-case.blockβ for each newline less than the size indicated bycbs=BYTES, remove the newline and pad with spaces up tocbs. Lines longer thancbsare truncated.unblockβ for each block of input of the size indicated bycbs=BYTES, remove right-trailing spaces and replace with a newline character.sparseβ attempts to seek the output when anobs-sized block consists of only zeros.swabβ swaps each adjacent pair of bytes. If an odd number of bytes is present, the final byte is omitted.syncβ pad eachibs-sided block with zeros. Ifblockorunblockis specified, pad with spaces instead.exclβ the output file must be created. Fail if the output file is already present.nocreatβ the output file will not be created. Fail if the output file is not already present.notruncβ the output file will not be truncated. If this option is not present, output will be truncated when opened.noerrorβ all read errors will be ignored. If this option is not present,ddwill only ignoreError::Interrupted.fdatasyncβ data will be written before finishing.fsyncβ data and metadata will be written before finishing.
πΈ Input flags πΈ
count_bytesβ a value tocount=Nwill be interpreted as bytes.skip_bytesβ a value toskip=Nwill be interpreted as bytes.fullblockβ wait foribsbytes from each read. zero-length reads are still considered EOF.
π Output flags π
appendβ open file in append mode. Consider settingconv=notruncas well.seek_bytesβ a value toseek=Nwill be interpreted as bytes.
π General flags π
directβ use direct I/O for data.directoryβ fail unless the given input (if used as aniflag) or output (if used as anoflag) is a directory.dsyncβ use synchronized I/O for data.syncβ use synchronized I/O for data and metadata.nonblockβ use non-blocking I/O.noatimeβ do not update access time.nocacheβ request that OS drop cache.nocttyβ do not assign a controlling tty.nofollowβ do not follow system links.
β VERSION β
v(uutils coreutils) 0.12.0
π EXAMPLES π
Make a bootable USB drive from an isohybrid file (such as archlinux-xxx.iso) and show the progress:
dd if=path/to/file.iso of=/dev/usb_drive status=progress
Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates:
dd bs=4194304 conv=fsync if=/dev/source_drive of=/dev/dest_drive
Generate a file with a specific number of random bytes by using kernel random driver:
dd bs=100 count=1 if=/dev/urandom of=path/to/random_file
Benchmark the sequential write performance of a disk:
dd bs=1024 count=1000000 if=/dev/zero of=path/to/file_1GB
Create a system backup, save it into an IMG file (can be restored later by swapping if and of), and show the progress:
dd if=/dev/drive_device of=path/to/file.img status=progress
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.
π₯Ί yeah bestie, uutils is a work in progress so some examples might just... not work. it's giving "we're getting there" energy. no cap.
and that's the whole page, gorgeous π«Ά dated 2026-09-25, from the uutils coreutils girlies, version v(uutils coreutils) 0.12.0. go copy something iconic today π
β¨π
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms