Dd (Unix)

dd
Original author(s)Ken Thompson
(AT&T Bell Laboratories)
Developer(s)Various open-source and commercial developers
Initial releaseJune 1974 (1974-06)
Repositorycoreutils: git.savannah.gnu.org/cgit/coreutils.git/
Written inPlan 9: C
Operating systemUnix, Unix-like, Plan 9, Inferno, Windows
PlatformCross-platform
TypeCommand
Licensecoreutils: GPLv3+
Plan 9: MIT License

dd is shell command for reading, writing and converting file data. Originally developed for Unix, it has been implemented on many other environments including Unix-like operating systems, Windows, Plan 9 and Inferno.[1]

The command can be used for many purposes. For relatively simple copying operations, it tends to be slower than domain-specific alternatives, but it excels at overwriting or truncating a file at any point or seeking in a file.[2]

The command supports reading and writing files, and if a driver is available to support file-like access, the command can access devices too. Such access is typically supported on Unix-based systems that provide file-like access to devices (such as storage) and special device files (such as /dev/zero and /dev/random). Therefore, the command can be used for tasks such as backing up the boot sector of a drive, and obtaining random data.

The command can also support converting data while copying; including byte order swapping and converting between ASCII and EBCDIC text encodings.[3]

dd is sometimes humorously called "Disk Destroyer", due to its drive-erasing capabilities involving typos.[4]

  1. ^ Austin Group. "POSIX standard: dd invocation". Archived from the original on 2010-03-10. Retrieved 2016-09-29.
  2. ^ Gilles (2011). "cloning - dd vs cat – is dd still relevant these days?". Unix & Linux Stack Exchange. Archived from the original on 2023-10-24. Retrieved 2020-04-24.
  3. ^ Chessman, Sam. "How and when to use the dd command?". CodeCoffee. Archived from the original on 14 Feb 2008. Retrieved 2008-02-19.
  4. ^ "How to use dd in Linux without destroying your disk". Opensource.com. 2018-07-05. Archived from the original on 2020-10-11. Retrieved 2020-10-11.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search