Use badblocks command to perform a disk wipe a destructive read-write test on Linux/Unix

Gif 02: Wipe a disk using badblocks

Gif 02: Wipe a disk using badblocks

You can use the badblocks command to perform a secure disk wipe a destructive read-write test on Linux or Unix-like system. The syntax is as follows for a /dev/sda disk (be careful with disk names. A wrong name can destroy working data. Always keep backups):
# badblocks -wsvf /dev/sda
Sample outputs:

/dev/sda is apparently in use by the system; badblocks forced anyway.
Checking for bad blocks in read-write mode
From block 0 to 390348799
Testing with pattern 0xaa:  10.83% done, 5:10 elapsed. (0/0/0 errors)

Examples and usage: How do I permanently erase hard disk?