ubuntu: destroy a huge binary file and make it non-readable.

Karl Auer kauer at biplane.com.au
Sat Jan 25 23:03:34 UTC 2014


On Sat, 2014-01-25 at 16:40 -0500, ping song wrote:
> my goal is to :
> 1) not to delete the file, not to chmod either
> 2) don't change the file size either
> 3) make the gzip file not being able to ungzipped and viewed - just to mess
> up the file and make it not usable (what I meant "destroy").

man shred

> I finally use GNU "head" to delete the last a couple of lines like this:

Your process will leave most of the file perfectly readable to ordinary
file inspection tools. shred will not.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882
Old fingerprint: B862 FB15 FE96 4961 BC62 1A40 6239 1208 9865 5F9A






More information about the ubuntu-users mailing list