Securely delete files in a harddisk
The following command will erase files in the entire disk. So be careful when using this. I once accidentally erased a partition other than the one I intended. Make sure the sd# is correct.
/dev/sd# is the entire harddisk. -n 10 refer to the passes the entire harddisk is overwritten with zeros (-z). -f tells shred to force the write by changing the permissions wherever necessary.
shred -vfz -n 10 /dev/sd#
/dev/sd# is the entire harddisk. -n 10 refer to the passes the entire harddisk is overwritten with zeros (-z). -f tells shred to force the write by changing the permissions wherever necessary.