dd if=/dev/zero of=/dev/hd0
CAUTION: Note thatThe man page goes on to say that it won't work with NFS, or compressed file systems either.shredrelies on a very important assumption: that the file system overwrites data in place. This is the traditional way to do things, but many modern file system designs do not satisfy this assumption. The following are examples of file systems on which shred is not effective, or is not guaranteed to be effective in all file system modes:
* log-structured or journaled file systems, such as those supplied with AIX and Solaris (and JFS, ReiserFS, XFS, Ext3, etc.)
* file systems that write redundant data and carry on even if some writes fail, such as RAID-based file systems
...
-- viashred'smanpage
posted by orthogonality at 8:00 PM on September 8, 2007 [1 favorite has favorites]