Results 1 to 2 of 2
I need some kind of tool to overwrite the first and last megabyte of a file several times. I was thinking about using dd in a script, but I'm not ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-09-2010 #1
- Join Date
- Mar 2010
Wipe first and last megabyte of file
I was thinking about using dd in a script, but I'm not so experienced with it, and the man-page does not show something useful (for this job).
I've also looked into shred, since I read this on the man-page:
shred this many bytes (suffixes like K, M, G accepted)
Edit: Sorry if this is the wrong subforum, I couldn't figure out whether to use this or Misc.
- 06-09-2010 #2
dd would probably be your best bet here.
But I would be careful about using it in a script unless you're very sure about how you're writing it!
You can find some decent dd tutorials using Google.