Re:In Unix, what do some obscurely named commands stand for?...
by dghughes on Wednesday September 09, 2020 @10:52AM
(#24421653)
Isn't dd "disk duplication"?
[ Parent
| on HN ]
Re:In Unix, what do some obscurely named commands stand for?...
by jxcl on Wednesday September 09, 2020 @10:53AM
(#24421665)
Or if swap your of and if arguments, disk destroyer. :)
Re:In Unix, what do some obscurely named commands stand for?...
by drfuchs on Wednesday September 09, 2020 @01:23PM
(#24423358)
Nope. As per Dennis Ritchie's 2004 comment in https://groups.google.com/g/alt.folklore.computers/c/HAWoZ8g... , the "dd" command's name is a joke about the DD ("Data Definition") card in IBM's horrid Job Control Language (JCL). You'd need a DD card for each and every file that your program was going to access, and the name had to be specified ahead of time.
A typical example, from https://programmerspub.com/learn/mainframe/jcl/the-dd-statem... :
//OUTPUT DD DSN=PROGPUB.FLATFILE.OUTPUT,DISP=(NEW,CATLG,DELETE),
// RECFM=FB,LRECL=80,SPACE=(800,(2,5))
Re:In Unix, what do some obscurely named commands stand for?...
by soneil on Wednesday September 09, 2020 @11:18AM
(#24421961)
You'd think so, since that's the main thing it's used for anymore. But check the output of --help. Changing case, ascii to ebcdic, doesn't really fit the bill.
Re:In Unix, what do some obscurely named commands stand for?...
by saalweachter on Wednesday September 09, 2020 @12:50PM
(#24422938)
You don't re-encode your disk from ASCII to EBCDIC when duplicating it? Have I been doing it wrong all of these years?
Re:In Unix, what do some obscurely named commands stand for?...
by soneil on Wednesday September 09, 2020 @01:04PM
(#24423110)
casting my harddrive to lowercase does sound like kind of experiment that'd only cross your mind after 6 months of lockdown.
Re:In Unix, what do some obscurely named commands stand for?...
by saalweachter on Wednesday September 09, 2020 @01:44PM
(#24423630)
I would start on media files, ideally formats that have a little bit of forgiveness where they'll try to render or play arbitrary sequences of bytes rather than just failing to parse them.
Re:In Unix, what do some obscurely named commands stand for?...
by tenebrisalietum on Wednesday September 09, 2020 @01:15PM
(#24423247)
It shouldn't be because it will work with normal files just fine. E.g. if you want to image a disk, `dd if=/dev/sdc of=sdc.img` and silly things like `dd if=/etc/passwd of=/root/~passwd` work too. Also it has a convert function so it's not strictly just for duplication.
Re:In Unix, what do some obscurely named commands stand for?...
by tempodox on Wednesday September 09, 2020 @11:40AM
(#24422205)
It's actually “convert and copy” but the command name `cc` was already occupied by “C compiler”, so they just incremented each letter to `dd`. `dd` can convert-and-copy any device, not just disks.
Re:In Unix, what do some obscurely named commands stand for?...
by JdeBP on Wednesday September 09, 2020 @03:06PM
(#24424592)
As can be seen at https://unix.stackexchange.com/q/6804/5132 , this wrong answer is still more popular than the right one that is supported by Dennis Ritchie. A salutary lesson in believing things to be true because they seem humorous or are popular.
Re:In Unix, what do some obscurely named commands stand for?...
by classified on Monday September 14, 2020 @05:08AM
(#24468209)
Forgive GP for not knowing which Bible to read and at whose altar to prostrate themselves. Like every religion Unix has its goyim and infidels that need to be flogged and flagellated so they can achieve proper enlightenment.
Re:In Unix, what do some obscurely named commands stand for?...
by hyperman1 on Wednesday September 09, 2020 @02:29PM
(#24424124)
As it's inconceivable to conflict both Ritchie and the jargon file when talking about UNIX history, I stand corrected. However, I do remember seeing 'cc was already taken, hence dd' in some old linux documentation.