In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux dd command to copy files and conversion, I hope you will learn a lot after reading this article, let's discuss it together!
The dd command copies a file with a block of the specified size and performs the specified conversion at the same time.
Note: if the specified number ends with the following characters, it will be multiplied by the corresponding number: bounded 512 / cross 1 / 10 / 1024 / 2
Syntax format: dd [parameters]
Common parameters:
-v displays version information-h displays help information
Reference example
Back up the local / dev/hdb disk to / dev/hdd:
[root@linuxcool ~] # dd if=/dev/hdb of=/dev/hdd
Restore the compressed backup files to the specified disk:
[root@linuxcool ~] # gzip-dc / root/image.gz | dd of=/dev/hdb
The string is read in by the standard input device, converted to uppercase, and then output to the standard output device:
[root@linuxcool ~] # dd conv=ucase
Convert all English letters in the testfile file to uppercase, and then convert to the testfile_1 file:
[root@linuxcool ~] # dd if=testfile_2 of=testfile_1 conv=ucase
Repair the hard drive:
[root@linuxcool ~] # dd if=/dev/sda of=/dev/sda has finished reading this article. I believe you have some understanding of copying and converting files using linux's dd command. Want to know more about it. Welcome to follow the industry information channel. Thank you for reading!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.