Securely delete/overwrite a file


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #Securely delete a file called /home/vivek/login.txt:
  2. shred -u ~/login.txt
  3.  
  4. #You can add a final overwrite with zeros to hide shredding:
  5. shred -u -x ~/login.txt

Report this snippet


Comments


You need to login to view comments.