Quote:
Originally Posted by Tinkster
from "man dd"
Code:
Sending a USR1 signal to a running `dd' process makes it print I/O sta-
tistics to standard error and then resume copying.
$ dd if=/dev/zero of=/dev/null& pid=$!
$ kill -USR1 $pid; sleep 1; kill $pid
|
Thanks for your prompt reply, and yes I always forget that man pages have most of the answers. Now, the above procedure is kind of confusing.
How would I apply that concept to this for example:
Code:
dd if=/dev/hda1 of=/dev/sda1 bs=4096
What is the meaning of the & and ! symbols. I know $ is used for variables.
On the net, I found similar way of doing it. A lot easier I think. Just by finding the pid of dd:
ps -A | grep dd
I can use the kill -USR1 to dump the progress:
kill -USR1 pid
Nevertheless, I would like to understand the way the man pages does it.