TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Secure delete with rm on OS X

24 pointsby mustpaxover 14 years ago

5 comments

Maskawanianover 14 years ago
There is no guarantee this goes on the same sectors on the disk. I think that would only be guaranteed by a "secure delete call" to the drive's firmware.<p>The only way I know to securely erase the empty space on the drive is a call like "cat /dev/urandom &#62; file; rm file". This will error once the drive is full, then be deleted.
评论 #1825441 未加载
评论 #1824979 未加载
评论 #1824985 未加载
Groxxover 14 years ago
Know what's easier?<p>Right click the trash bin, and hold Command. You'll see "Secure Empty Trash". You can also do the rm -P <i>from</i> the trash bin, which I wish they allowed you to do under normal circumstances. (dterm makes this easy.)
评论 #1825431 未加载
Nitenover 14 years ago
This isn't an OS X specific feature, it's a feature from the FreeBSD userland that Apple borrowed into OS X.
jrockwayover 14 years ago
Secure delete is not reliable with modern filesystems. Just use full-disk encryption -- it's free.
评论 #1825467 未加载
评论 #1825238 未加载
评论 #1825208 未加载
评论 #1825134 未加载
评论 #1825143 未加载
santryover 14 years ago
Or use srm.