linux-File Processing command-DD

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.