Tips: How to show progress during dd copy

Dec 4, 2012 00:00 · 72 words · 1 minute read Linux

dd is a popular tool, but it is silent unless something unexpected happens. It is OK for short operation. Hovewer if operation is not too fast, I think you will prefer to see a progress. Well, dd supports a special USR1 signal for this purpose.

dd if=/dev/zero of=/dev/sde & pid=$! ; watch -n 10 kill -USR1 $pid
16+0 records in
516+0 records out
34628173824 bytes (35 GB) copied, 305.984 s, 113 MB/s