POSTS
DD, monitor current status and speed
By Daniele Brugnara
One of the most useful command in Linux, is dd. We also know that dd provides info regarding the current status, using kill:
kill -USR1 <pidof dd>
but I really prefer the pv way (apt-get install pv)
# We usually do this way
dd if=my.iso of=/dev/sdb
# This is the "pv" way
dd if=my.iso | pv | dd of=/dev/sdb
Of course, you need apt-get install -y pv before, but piping through pv, allow you to see the status, in real time.
dd if=xubuntu-16.04.2-desktop-i386.iso | pv | dd of=/dev/sdb
1.01GiB 0:06:22 [3.25MiB/s] [ <=> ]
# when dd ends, this output is printed, as always
2543424+0 records in
2543424+0 records out
1302233088 bytes (1.3 GB, 1.2 GiB) copied, 382.114 s, 3.4 MB/s