The progress of the DD command is displayed under Linux:

Source: Internet
Author: User

The progress of the DD command is displayed under Linux:

DD If=/dev/zero of=/tmp/zero.img bs=10m count=100000

To see the execution progress of the DD command above, you can use the following methods:

Example: Output dd progress every 5 seconds

Method One:

Watch-n 5 PKILL-USR1 ^dd$

Method Two:

Watch-n 5 KILLALL-USR1 DD

Method Three:

While KILLALL-USR1 DD; Do sleep 5; Done

Method Four:

while (PS auxww |grep "dd" |grep-v grep |awk ' {print $} ' |while read PID; Do KILL-USR1 $pid; Done); Do sleep 5; Done

The above four methods use three commands: Pkill, Killall, kill to the DD command to send SIGUSR1 information, the DD command process after receiving the signal to print their current progress.

The progress of the DD command is displayed under Linux:

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.