If I decide to sell or when I have to return a hard drive I want to make sure not everyone can access my data.
To do that I’ve often used the command shred this way:
shred -vzf -n 5 /dev/sdb
where:
-v; show progress
-z; add an extra pass of zeros to hide shredding
-f; change permissions to a[……]