<tt>dd</tt>: Image Copy



next up previous contents
Next: grep: Global Regular Up: Utilities Previous: tar: Tape Archive

dd: Image Copy

This utility is ``useful for making an image copy of any media. An image copy is an exact byte-for-byte copy" [][p. 80]RT:UNIX.

dd [if=input-file] [of=output-file] [option]
where both input-file and output-file are optional. If omitted, input-file will default to the standard input, whereas will default to the standard output.

option can be one or more of:

To read a older Silicon Graphics tape on a Sun, the dd command is:

dd if=/dev/tape conv=swab,noerror,sync | tar xf -

The input of dd is the file on the cartridge tape. dd converts that file by swapping every pair of bytes, and padding every record to 512 bytes (while not stopping if an error occurs). The resulting output file is fed (through the pipe) to tar, which then reads the file.

When an hyphen (-) is used instead of a file name on the tar command, the input is taken from the standard input on the extract and put to the standard ouput on the create command.



Super-User
Fri Feb 17 15:55:40 EST 1995