dd โ€” Convert and copy a file. # source: tldr ยท verified Examples: # Make a bootable USB drive from an isohybrid file (such as `archlinux-xxx.iso`) and show the progress [GNU] $ sudo dd status=progress if=path/to/file.iso of=/dev/usb_drive # Clone a drive to another drive with 4 MiB block size and flush writes before the command terminates [GNU] $ sudo dd bs=4M 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 [GNU] $ dd bs=100 count=1 if=/dev/urandom of=path/to/random_file # โœŽ Wrong or incomplete? Improve this page โ†’ https://curlhub.sh/man/dd