The Cult of DD


25 bookmarks. First posted by Chirael march 2017.


Caveat: must be root to do most of this, which is inconvenient on macOS.
terminal 
april 2017 by quells
You’ll often see instructions for creating and using disk images on Unix systems making use of the dd command. This is a strange program of obscure provenance that somehow, still manages to survive in the 21st century.
linux  Linux_Applications  Linux_Development 
march 2017 by GameGamer43
Actually, using dd is almost never necessary, and due to its highly nonstandard syntax is usually just an easy way to mess things up
wrk-tec 
march 2017 by jamescampbell
dd vs cat on Unix
unix  linux  history 
march 2017 by dezrtfox
TIL: dd is almost never what you want. To copy an image to a device, `cat iso > /dev/sdx` does the same thing.
from twitter_favs
march 2017 by andydavies
You’ll often see instructions for creating and using disk images on Unix systems making use of the dd command. This is a strange program of obscure provenance that somehow, still manages to survive in the 21st century.
linux  unix  tutorial 
march 2017 by ssorc
RT : The cult of dd: (cat is often better -- reminds me of the 'useless use of cat' greybeard perspective)
from twitter
march 2017 by DRMacIver
You’ll often see instructions for creating and using disk images on Unix systems making use of the dd command. This is a strange program of obscure provenance that somehow, still manages to survive in the 21st century.

Actually, using dd is almost never necessary, and due to its highly nonstandard syntax is usually just an easy way to mess things up. For instance, you’ll see instructions like this asking you to run commands like:

# Obscure dd version
dd if=image.iso of=/dev/sdb bs=4M
Guess what? This is exactly equivalent to a regular shell pipeline using cat and shell redirection:

# Equivalent cat version
cat image.iso >/dev/sdb
That weird bs=4M argument in the dd version isn’t actually doing anything special—all it’s doing is instructing the dd command to use a 4 MB buffer size while copying. But who cares? Why not just let the command figure out the right buffer size automatically?
unix  history  reference 
march 2017 by Chirael