How To Install Dd On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Dd On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

dd

Convert and copy a file.

Maintainer: Michael Stone



Section: utils

Install dd

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click to copy

Convert and copy a file.

How to use dd?

Below are few example commands for dd that you can use in the terminal.

Make a bootable usb drive from an isohybrid file (such like archlinux-xxx.iso) and show the progress:
dd if=file.iso of=/dev/usb_drive status=progressClick to copy
Clone a drive to another drive with 4MB block, ignore error and show progress:
dd if=/dev/source_drive of=/dev/dest_drive bs=4M conv=noerror status=progressClick to copy
Generate a file of 100 random bytes by using kernel random driver:
dd if=/dev/urandom of=random_file bs=100 count=1Click to copy
Benchmark the write performance of a disk:
dd if=/dev/zero of=file_1GB bs=1024 count=1000000Click to copy
Check progress of an ongoing dd operation (Run this command from another shell):
kill -USR1 $(pgrep ^dd)Click to copy
Install the latest version of dd in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the dd just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of dd from the respository and install it in your computer/server.