how to overwrite the content of a file

Matthias Apitz guru at unixarea.de
Fri Nov 12 08:39:07 UTC 2010


El día Thursday, November 11, 2010 a las 02:16:33PM -0600, Adam Vande More escribió:

> > What is the best method to overwrite the blocks of a given file with
> > bytes of 0x00, i.e. not to O_TRUNC away the blocks to the freelist of the
> > file system, but overwrite the old blocks?
> >
	...
> 
> Well there is "rm -P" although I'm not sure that accomplished exactly what
> you are looking for.

Yes, thanks. This is exactly what I need.

	matthias
> 
> -- 
> Adam Vande More

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <guru at unixarea.de> - w http://www.unixarea.de/


More information about the freebsd-questions mailing list