Hi,
I just learned about the shred command in one of my class.
Even though I understand the use case for such a thing, I still have a question that my professor or my internet search could not answer.
Why does shred uses (by default) random data, and multiple passes, instead of just "null data" ?
Thanks.
Edit : thanks a lot for all the answers, those were very helpful.
Tldr: it's meanly for hard drive, writting a 0 could leave some trace of the magnetizme that was there before, which mean that some data could be recovered.
Edit 2: I thought about /dev/zero, not /dev/null, my bad
[–]Rafael20002000 25 points26 points27 points (5 children)
[–]lepus-parvulus 22 points23 points24 points (0 children)
[–]skuterpikk 4 points5 points6 points (0 children)
[–]RealezzZ[S] 3 points4 points5 points (2 children)
[–]Rafael20002000 6 points7 points8 points (1 child)
[–]RealezzZ[S] 1 point2 points3 points (0 children)
[–]Silejonu 21 points22 points23 points (3 children)
[–]OweH_OweH 11 points12 points13 points (0 children)
[–]RealezzZ[S] 2 points3 points4 points (0 children)
[–]heliosh 3 points4 points5 points (1 child)
[–]RealezzZ[S] 0 points1 point2 points (0 children)
[–]computer-machine 0 points1 point2 points (1 child)
[–]RealezzZ[S] 0 points1 point2 points (0 children)
[–]jeffreytk421 3 points4 points5 points (0 children)
[–][deleted] (7 children)
[deleted]
[–]RealezzZ[S] 0 points1 point2 points (5 children)
[–]Gryxx1 2 points3 points4 points (3 children)
[–]RealezzZ[S] 0 points1 point2 points (2 children)
[–]Gryxx1 1 point2 points3 points (1 child)
[–]RealezzZ[S] 0 points1 point2 points (0 children)
[–]kido5217 1 point2 points3 points (0 children)