next up previous contents index
Next: Examples Up: ddthe data duplicator Previous: ddthe data duplicator

Options

To say the truth, dd it's not completely unlike the other Unix command: it is indeed a filter, that is it reads by default from the standard input and writes to the standard output. So if you just type dd at the terminal it remains quiet, waiting for input, and a ctrl-C is the only sensitive thing to type.

The syntax of the command is as follows:

    dd [if=file] [of=file] [ibs=bytes] [obs=bytes] 
       [bs=bytes] [cbs=bytes] [skip=blocks] [seek=blocks] 
       [count=blocks] [conv={ascii,ebcdic,ibm,block,
           unblock,lcase,ucase,swab,noerror,notrunc,sync}]
so all options are of the form option=value. No space is allowed either before or after the equal sign; this used to be annoying, because the shell did not expand a filename in this situation, but the version of bash present in Linux is rather smart, so you don't have to worry about that. It is important also to remember that all numbered values (bytes and blocks above) can be followed by a multiplier. The possible choices are b for block, which multiplies by 512, k for kilobytes (1024), w for word (2), and xm multiplies by m.

The meaning of options if explained below.


next up previous contents index
Next: Examples Up: ddthe data duplicator Previous: ddthe data duplicator

Converted on:
Mon Apr 1 08:59:56 EST 1996