Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.08 sec)
Deleting a file securely in Ubuntu

Can I be sure when I delete a file on my Ubuntu server that no-one will be able to read it from my drive ?

Are there any ways to be REALLY sure ?
Asked by:
ubuntuhelp
814 points
 Report Abuse
 Share Page - Category: Ubuntu Linux - Tags: Deleting a file securely in Ubuntu
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (3)

Best Answer

Use the "shred" command.

shred - delete/destroy the content of file, then remove it


Response by:
jalal
3623 points
Check out the shred command too.

Response by:
JimmyC
945 points
Removing the files gives no guarantee at all.

Take all the hard drives out and drop them in sulfuric acid after having given them a good beating with a sledgehammer.

Alternativery, you could try using "wipe" (and see the comments in the man page), on the file and all the swap partitions (after having done a swapoff -a). That may not be enough if using file systems like btrfs or LVM snapshots or the file has been copied from some other file...

Response by:
s
3383 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle