Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My Question is I want to erase a file in OS X Securely (like the function of "Secure Empty Trash") so that, the file cannot be recovered by using recovery tools. I don't want to empty the trash. It is possible to erase Files Securely in OS X without moving the file to Trash ?

share|improve this question
    
TBH i think finding a "fix" now will just be delaying the inevitable change to this look that'll probably come with all new versions –  XAleXOwnZX Jul 28 '12 at 18:18
add comment

2 Answers 2

up vote 6 down vote accepted

You can always use the terminal command rm with the -P option:

[Option -P will] Overwrite regular files before deleting them. Files are overwritten three times, first with the byte pattern 0xff, then 0x00, and then 0xff again, before they are deleted.

If you're not handy with the Terminal, just:

  1. Open the Terminal.app (Found in /Applications/Utilities).
  2. Type cd and drag the folder which contains the file you want to delete, to the terminal window.
  3. Type rm -P FileName.extension and hit Enter
share|improve this answer
2  
Or combine step 2 and 3 by typing rm -P followed by directly dragging the file into the terminal window. It's also worth mentioning that depending on the sector/cluster allocation process it is usually not guaranteed that the whole file will be overwritten. If you really care about these things use FileVault 2 to encrypt the whole drive. –  patrix Jul 27 '12 at 13:59
add comment

srm is another shell utility for deleting files securely. It uses the 35-pass Gutmann algorithm by default, but -s (overwriting files with random data once) is faster and should be secure enough for most purposes.

share|improve this answer
1  
In fact, choosing "Secure Empty Trash" in Finder invokes srm. –  lupincho Jul 29 '12 at 16:23
    
thanks for the answer. I will try this :) –  Aravindhanarvi Jul 29 '12 at 17:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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