Created
April 12, 2011 16:51
-
-
Save louisdx/915900 to your computer and use it in GitHub Desktop.
Progress dd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# Credits for the idea: http://linuxcommando.blogspot.com/2008/06/show-progress-during-dd-copy.html | |
# Written by Louis Delacroix | |
dd if=/dev/zero of=/dev/null bs=512 count=3000000 & | |
PID=$! | |
echo "The dd process runs with PID is $PID. Watching..." | |
watch -n 1 --no-title --errexit kill -USR1 $PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment