DD
1. Role
The DD command is used to copy the file and convert and format the data according to the parameters.
2. Format
DD [Options]
3.[opitions] Main parameters
bs= bytes: Forced ibs= and obs=.
cbs= Bytes: Each conversion is specified.
conv= Keyword: Converts a file based on a comma-delimited representation of a keyword.
count= Number of blocks: only the specified input data is copied.
ibs= Bytes: Read each time the specified.
if= file: reads the content rather than the standard input data.
obs= Bytes: Writes each time the specified.
of= File: Writes data instead of the standard output display.
number of seek= blocks: The specified output data in Obs is skipped first.
skip= Number of blocks: Skip the specified input data in IBS first.
4. Application examples
The DD command is often used to make Linux boot disks. Find a bootable kernel, point its root device to the correct root partition, and then use the DD command to write it to the floppy disk:
$ rdev Vmlinuz/dev/hda
$dd if=vmlinuz of=/dev/fd0
The code above shows that using the Rdev command to point the root device in the bootable kernel vmlinuz to/dev/hda, replace "HDA" with its own root partition, and then write the kernel to a floppy disk using the DD command.
This article is from the "--" blog, please be sure to keep this source http://57388.blog.51cto.com/47388/1544720
linux-File Processing command-DD