View Progress of dd Command

dd is a very useful, and also very dangerous, command that allows to copy a whole device to another or to an iso file.

Its syntax is as simple as:

> dd if=/dev/sr0 of=/path/to/copy.iso

Unfortunately there is no progress indication and thus, as it often implies moving a huge amount of data, we're left kind of blind once the command is started.

To have a peek at the current advancement of the dd command, one can use the following, from a concurrent terminal of course:

> watch -n 10 "kill -USR1 $(pgrep -l '^dd$')"

This will output the current dd statistics, in the terminal executing the dd command.