Secure Deleting Files in Linux? Overwriting files with bits to secure erase?
Is there an option on Linux other than shred that will overwrite data?
The shred command only works for specific files and not the entire contents of folders. Id rather have the option integrated in the shell so the options given as you actually right click a/multiple file/folders. |
You can make shred work on all files in a directory like this:
Code:
find /target/directory -type f -exec shred --zero --remove {} \; |
Hi:
I've never tried overwrite with mv or copy but these links should help. See man overwrite- http://linux.die.net/man/3/overwrite http://www.rapidtables.com/code/linu...-overwrite.htm You need to pass the -i option to cp. It will prompt the user if file already existing in a destination directory so that file would be overwritten with confirmation: http://www.cyberciti.biz/faq/cp-copy...unix-examples/ http://superuser.com/questions/41446...ile-using-echo ---------- Post added 08-31-15 at 10:16 PM ---------- Quote:
|
Quote:
The shred command, and others like it, attempt to overwrite the same blocks by opening the file without the O_TRUNC option, but even then not all filesystems will perform the writes to the same logical blocks. And for devices like SSDs and flash drives, even overwriting the same logical blocks will almost certainly not write to the same physical blocks on the device. |
Quote:
|
In this article you can force cp to overwrite w/o confirmation.
http://stackoverflow.com/questions/8...t-confirmation Is this a bad practice rknichols? |
Quote:
|
Quote:
Thanks-:) |
i have liked the Debian "srm" for years
it builds on Fedora on rhel and is in the Opensuse base packages Code:
srm --help BUT!!! and it is a VERY BIG BUTT modern file systems might not write the data to the exact same sector however there is a work around " dd" you use it to make one honking HUGE file in the partition using rand or zero for the root " / " partition Code:
su - "of=/dev/hdc2/BIG_FILE.bin " |
Quote:
|
All times are GMT -5. The time now is 02:25 AM. |