Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

I'm going to switch to a new VPS and I want to completely delete some confidential files/folders from the current VPS (and MySQL content too). The server is running CENTOS 6.

Btw, it's not rm -rf. I want to remove files/folders without recovery (that means erase all inode contents, not just unlink them).

Is there tool to do so?

share|improve this question

marked as duplicate by Dennis Kaarsemaker, cole, Jenny D, Magellan, ewwhite Dec 25 '13 at 4:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I've found out that wipe (wipe.sourceforge.net) may be the best way for safe deletion. –  hiro Dec 24 '13 at 11:52

1 Answer 1

up vote 5 down vote accepted

You can take a look at shred, which overwrites files repeatedly, making recovery a lot harder.

share|improve this answer
    
Make sure to also shred tempfs. –  ablackhat Dec 24 '13 at 9:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.