dd(1)
π NAME π
okay so bestie, meet dd β the manual is called dd(1) and it's a General Commands Manual entry, and what it does is literally this: Copy, and optionally convert, a file system resource. that's it, that's the whole vibe. copy stuff, maybe transform it on the way, iconic behavior honestly π¦
β¨ SYNOPSIS β¨
dd [-h|--help] [-V|--version] [operands]
πΈ DESCRIPTION πΈ
Copy, and optionally convert, a file system resource
like. that's the whole job description and she does it FLAWLESSLY. π
π OPTIONS π
-h,--helpβ Print help. she will tell you how to use her, no gatekeeping π-V,--versionβ Print version. she will tell you who she is π[operands]β yes bestie, the operands go here (see the EXTRA section below, they're the main character fr fr)
π EXTRA π
π Operands π
these are the real ones, the whole personality, no cap:
bs=BYTESβ read and write up toBYTESbytes at a time (default:512); overwritesibsandobs. she's the boss of both of them, periodt.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 afterNbytes is preferredibs=Nβ the size of buffer used for reads (default:512)if=FILEβ the file used for input. When not specified,stdinis used insteadiflag=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 seekingNbytes 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 insteadoflag=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 belowseek=N(oroseek=N) β seeksNobs-sized records into output before beginning copy/convert operations. Seeoflag=seek_bytesif seekingNbytes is preferredstatus=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.
bestie listen. thatPOSIXLY_CORRECTthing is real β set it to literally anything, even nothing at all, andUSR1gets ignored. don't come crying to me π
π§ 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: converts 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 in 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.7.0
and that's the whole page bestie!! this is dd (uutils coreutils) 0.7.0 β that's the source and the version right there, so if anyone asks, you know exactly which build of uutils coreutils you're out here slaying with π
β¨ go copy something and make it cute, mwah π«Ά
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
- fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms