How To Install Dd On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install dd
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick 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 copyClone 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 copyGenerate a file of 100 random bytes by using kernel random driver:dd if=/dev/urandom of=random_file bs=100 count=1Click to copyBenchmark the write performance of a disk:dd if=/dev/zero of=file_1GB bs=1024 count=1000000Click to copyCheck 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.




