Mac OS X – Using `shred` from the Command Line

macosmacportssecure-erase

I need to securely erase some files. I have used shred on linux systems before, so I looked around and found that shred is part of the coreutils package in macports. I did port install coreutils to install coreutils, but I still can't find shred in the command line.

How can I get shred to work on my mac's command line? If it matters, I'm using Mac OS X 10.7.5 (Lion)

Best Answer

port install coreutils adds a g prefix to the names of binaries, so shred is /opt/local/bin/gshred.

Related Question