Dd command show progress on Linux


I want to erase external USB 1 TB hard disk. If I just run dd command I don’t get any status update.

My dd show progress command

dd if=/dev/zero of=/dev/sdb bs=4096

How can I show progress when using dd command when using CentOS 7 server?

The procedure to show dd command progress bar on Linux:

  1. Open the terminal
  2. Pass the status=progress to the dd command
  3. For example: dd if=/dev/zero of=/dev/sdb bs=4096 status=progress
  4. Another option is to use the pv command: pv -tpreb /dev/zero | dd of=/dev/sdb bs=4096

For more info see: Linux dd Command Show Progress Copy Bar With Status