Re: deleting files with linux
From: L Ekman (emil71se@yahoo.com)
Date: 04/22/03
- Next message: Peteris Krumins: "Re: ipsec prob w/ 2.4.18?"
- Previous message: Johan Kullstam: "Re: New MS Vulnerability?"
- In reply to: Chris Lowth: "Re: deleting files with linux"
- Next in thread: Kenneth A Kauffman: "Re: deleting files with linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "L Ekman" <emil71se@yahoo.com> Date: Tue, 22 Apr 2003 17:04:25 GMT
Chris Lowth <please@no.spam> wrote:
>>> ls -l <filename> #to get the length of the file
>>> dd if=/dev/zero of=<filename> count=<length> #to write zero's
>>> dd if=/dev/urandom of=<filename> count=<length> #to write random data
>>> bytes rm <filename>
> Nope - wont work (well - may not work) because dd truncates and re-allocates
> the file space, which can wind up moving it (or bits of it).
Yes, but that can be avoided with "conv=notrunc", like;
dd if=/dev/zero of=<filename> count=<length> conv=notrunc
~~~~~~~~~~~~
> Keep it simple - use the "shred" utility which is specifically designed to
> do what the OP is after (ie: "in-place" zapping of the file).
Probably a good advice in any case.
Regards,
L Ekman
- Next message: Peteris Krumins: "Re: ipsec prob w/ 2.4.18?"
- Previous message: Johan Kullstam: "Re: New MS Vulnerability?"
- In reply to: Chris Lowth: "Re: deleting files with linux"
- Next in thread: Kenneth A Kauffman: "Re: deleting files with linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|