I always remove files from my machine using sudo rm -rf file
, and today I found that shred
does a better job in terms of preventing files from being recovered later.
My question is: I have an SSD only in my machine, and I'd like to know if removing files using shred
instead of rm
will decrease the lifespan of my SSD a lot, or since it's just a file it does not matter that much.
Disclaimer:
I know that flash disks are not bullet-proof when using
shred
, I read in many places that it's impossible to guarantee 100% that the files will not be recoverable, but I'm not hiding files from gov etc, just want to delete them for good in case I sell my computer in the future.I keep
shred
's default 3 overwrite passes.
rm
as super user is only necessary if a regular user doesn't have the file system permission to delete the file. Just to clarify:sudo rm
is not more secure thanrm
. – Matthias Braun Jun 11 '21 at 05:07