logoalt Hacker News

anyfoolast Friday at 12:14 AM7 repliesview on HN

> I couldn't for the life of me tell you what dd stands for.

Data(set) Definition. But that name does not make any sense whatsoever by itself in this context, neither for the tool (it hardly "defines" anything), nor for UNIX in general (there are no "datasets" in UNIX).

Instead, it's specifically a reference to the DD statement in the JCL, the job control language, of many of IBM's mainframe operating systems of yore (let's not get into the specifics of which ones, because that's a whole other can of complexity).

And even then the relation between the DD statement and the dd command in UNIX is rather tenuous. To simplify a lot, DD in JCL does something akin to "opening a file", or rather "describing to the system a file that will later be opened". The UNIX tool dd, on the other hand, was designed to be useful for exchanging files/datasets with mainframes. Of course, that's not at all what it is used for today, and possibly that was true even back then.

This also explains dd's weird syntax, which consists of specifying "key=value" or "key=flag1,flag2,..." parameters. That is entirely alien to UNIX, but is how the DD and other JCL (again, of the right kind) statements work.


Replies

isoprophlexlast Friday at 6:09 AM

I just remember it as "Da Disk", early 2000's nu metal lyrics-style, because it does mad things to da disk, yo.

show 2 replies
f33d5173last Friday at 3:41 AM

I had remembered it was "convert and copy", but cc was already taken by the c compiler so they shifted it down a letter. That might have been apocryphal.

show 1 reply
necoveklast Friday at 1:59 AM

Having come from the DOS world (or it could have been Norton utilities), I always thought it was more like DiskDupe (duplicate disks).

Funny how we never confirm our hypothesis that "checks out".

show 1 reply
vrighterlast Friday at 12:26 PM

i always think of it as Data Destroyer

richardc323last Friday at 8:17 AM

Ha, for the last 30 years I have been convinced it was Disk Direct.

linhnslast Friday at 7:10 PM

I thought it was dirty deeds.