It is generally used to create swap and can also be used to back up the file format: ddif & quot; input_file & quot; of & quot; output_file & quot; bs & quot; block_size & quot; count & quot; number & quot; parameter: if: input file, which can be a device of: output file or a device bs: planning...
It is generally used to create swap and back up files.
Format: dd if = "input_file" of = "output_file" bs = "block_size" count = "number"
Parameter: if: input file, which can be a device
Of: output file, which can be a device
Bs: plan the size of a block, which is not set. the default value is 512 bytes.
Count: sets the number of bs.
Example:
Axelia @ Aspire:/tmp $ dd if =/etc/passwd of =/tmp/password. bak
2 + 1 read Records
2 + 1 Records
1530 bytes (1.5 kB) copied, 6.6824e-05 seconds, 22.9 MB/second
(Backup/etc/passwd) axelia @ Aspire:/tmp $ dd if =/dev/sda of = tmp/mbr. bak bs = 512 count = 1 (back up the mbr File of/dev/sda)
This article is from the "cloud Qingfeng" blog