Re:In Unix, what do some obscurely named commands stand for?...
by acheron on Wednesday September 09, 2020 @11:05AM
(#24421821)
I always liked that dd story but it's probably not true -- it's based on the DD command in IBM JCL, which stood for "data definition".
Re:In Unix, what do some obscurely named commands stand for?...
by p_l on Wednesday September 09, 2020 @12:19PM
(#24422594)
Nothing says it can't be both "incremented cc" and "DD from JCL" - especially when you consider the way the options are given, which I've heard from some Bell Labs sources long ago originated as joke on JCL
Re:In Unix, what do some obscurely named commands stand for?...
by Sebb767 on Wednesday September 09, 2020 @11:48AM
(#24422276)
I've also heard disk dump, but this might be a backronym.
Re:In Unix, what do some obscurely named commands stand for?...
by chills on Wednesday September 09, 2020 @11:41AM
(#24422215)
g/re/p lives on as :g in vim, it's kind of fun to remember its heritage to ed. There is also :v which is analogous to grep -v.
Re:In Unix, what do some obscurely named commands stand for?...
by evanb on Wednesday September 09, 2020 @11:29AM
(#24422096)
Computerphile did a great video with Brian Kernighan on "Where GREP Came From"
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"?
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.
Re:In Unix, what do some obscurely named commands stand for?...
by tempodox on Wednesday September 09, 2020 @01:17PM
(#24423272)
And if you thought my parent comment was a bad joke, maybe read the man page:
Re:In Unix, what do some obscurely named commands stand for?...
by saalweachter on Wednesday September 09, 2020 @11:46AM
(#24422263)
Did anyone else think it was GNU-rep, presumably a reference to an older UNIX command?
Re:In Unix, what do some obscurely named commands stand for?...
by xxr on Wednesday September 09, 2020 @01:11PM
(#24423196)
Same--up until now I "knew" that grep stood for "GNU regular expression parser." Always good to have a reminder to question all the other things we "know."
I was hoping dd would be listed.[0]
Edit: digging a little deeper into [0], there's a Unix Acronym List linked [1]. There seems to be various definitions for dd. One definition says that dd stands for copy and convert, but since cc was already taken for the C compiler, dd was used.
[0]: https://unix.stackexchange.com/questions/6804/what-does-dd-s...
[1]: https://groups.google.com/forum/#!topic/comp.unix.misc/LbLTa...