Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dd(1) [minix man page]

DD(1)							      General Commands Manual							     DD(1)

dd - disk dumper SYNOPSIS
dd [option = value] ... EXAMPLES
dd if=/dev/fd0 of=/dev/fd1 # Copy disk 0 to disk 1 dd if=x of=y bs=1w skip=4 # Copy x to y, skipping 4 words dd if=x of=y count=3 # Copy three 512-byte blocks DESCRIPTION
This command is intended for copying partial files. The block size, skip count, and number of blocks to copy can be specified. The options are: if = file - Input file (default is stdin) of = file - Output file (default is standard output) ibs = n - Input block size (default 512 bytes) obs = n - Output block size (default is 512 bytes) bs = n - Block size; sets ibs and obs (default is 512 bytes) skip = n - Skip n input blocks before reading seek = n - Skip n output blocks before writing count = n - Copy only n input blocks conv = lcase - Convert upper case letters to lower case conv = ucase - Convert lower case letters to upper case conv = swab - Swap every pair of bytes conv = noerror- Ignore errors and just keep going conv = silent- Suppress statistics (Minix specific flag) Where sizes are expected, they are in bytes. However, the letters w, b, or k may be appended to the number to indicate words (2 bytes), blocks (512 bytes), or K (1024 bytes), respectively. When dd is finished, it reports the number of full and partial blocks read and writ- ten. SEE ALSO
vol(1). DD(1)

Check Out this Related Man Page

DD(1)							      General Commands Manual							     DD(1)

dd - convert and copy a file SYNOPSIS
dd [ option value ] ... DESCRIPTION
Dd copies the specified input file to the specified output with possible conversions. The standard input and output are used by default. The input and output block size may be specified to take advantage of raw physical I/O. The options are -if f Open file f for input. -of f Open file f for output. -ibs n Set input block size to n bytes (default 512). -obs n Set output block size (default 512). -bs n Set both input and output block size, superseding ibs and obs. If no conversion is specified, preserve the input block size instead of packing short blocks into the output buffer. This is particularly efficient since no in-core copy need be done. -cbs n Set conversion buffer size. -skip n Skip n input records before copying. -iseek n Seek n records forward on input file before copying. -files n Catenate n input files (useful only for magnetic tape or similar input device). -oseek n Seek n records from beginning of output file before copying. -count n Copy only n input records. -conv ascii Convert EBCDIC to ASCII. ebcdic Convert ASCII to EBCDIC. ibm Like ebcdic but with a slightly different character map. block Convert variable length ASCII records to fixed length. unblock Convert fixed length ASCII records to variable length. lcase Map alphabetics to lower case. ucase Map alphabetics to upper case. swab Swap every pair of bytes. noerror Do not stop processing on an error. sync Pad every input record to ibs bytes. Where sizes are specified, a number of bytes is expected. A number may end with or to specify multiplication by 1024 or 512 respectively; a pair of numbers may be separated by to indicate a product. Multiple conversions may be specified in the style: is used only if or conversion is specified. In the first two cases, n characters are copied into the conversion buffer, any specified character mapping is done, trailing blanks are trimmed and new-line is added before sending the line to the output. In the latter three cases, characters are read into the conversion buffer and blanks are added to make up an output record of size n. If is unspecified or zero, the and options convert the character set without changing the block structure of the input file; the and options become a simple file copy. SOURCE
/sys/src/cmd/dd.c SEE ALSO
Dd reports the number of full + partial input and output blocks handled. DD(1)
Man Page

Featured Tech Videos