dd
Complete wiping of a USB drive
# view the block devices
$ lsblk
...
sda 8:0 1 57.3G 0 disk
├─sda1 8:1 1 4.3G 0 part /media/user/Kali Live
├─sda2 8:2 1 1M 0 part /media/user/xxxx-xxxx
└─sda3 8:3 1 53G 0 part /media/user/persistence
...
# unmount the partitions
$ sudo umount /dev/sda1 /dev/sda2 /dev/sda3
# erase filesystem signatures: prevents any form of data corruptions, and other related issues
$ sudo wipefs -a /dev/sda
# wipe the data in the device
$ sudo dd if=/dev/zero of=/dev/sda bs=4M status=progressLast updated