Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the dd parameter

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "what is the use of dd parameters", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what is the use of dd parameters" this article.

Dd powerful backup command

Command format: dd parameter

The parameters are:

Number of bs=bytes: set both ibs (input) and obs (output) to the specified size

Number of cbs=bytes: block size converted for block and unblock

Conv= parameters: specific parameters are as follows:

Ascii-> convert ebcdic to ascii

Ebcdi-> convert ascii to ebcdi

Ibm-> convert ascii to another ebcdic

Block-> change the newline to the number of spaces set by the cbs parameter

Unblock-> replace the number of spaces set by the cbs parameter with a newline symbol

Lcase-> change uppercase letters to lowercase

Ucase-> change lowercase letters to uppercase

Swab-> swap the output characters in groups of two

Noerror-> ignore the error and proceed

Notrunc-> do not truncate the output file

Sync-> fill the data block with NULL to make it the same size as the ibs

Number of count= blocks: the number of blocks that read only the specified data

Number of ibs=bytes: number of bytes per read

If= files: reading from fil

Obs=bytes parameter: number of bytes per output

Of= files: exporting to fil

Number of seek= blocks: the number of blocks skipped at the start of output

Number of skip= blocks: the number of blocks skipped at the start of reading

-- help: displays help information

-- version: displays version information

An example: convert the test.txt file to the following letters and write it to the newtest.txt file:

Dd if=test.txt of=newtest.txt conv=ucase

For example, back up the entire / dev/sda1:

Dd if=/dev/sda1 of=/back/myback

If you want to back up MBR, then:

Dd if=/dev/sda of=/home/allinster/mymbr bs=512 count=1

The above is all the content of the article "what is the use of dd parameters?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report