(yes I know about --no-preserve-root)
(yes I know about --no-preserve-root)
Uh, what? Somebody was trolling you if they gave you that advice. In the days of NFS or AFS (God, I'm old) that could get you into serious trouble if it wandered into somewhere unprotected.
dd if=/dev/zero of=/dev/<somedisk>? Sure. Bog standard guaranteed erase of the disk. Doing that even once means that you're now in NSA territory to recover it.
rm -rf /? Never heard of that, ever.
Or, in other words: I agree completely, in fifteen years I have never used 'rm -rf /', I always used mkfs to create fresh filesystem.
[1] http://www.bsdnow.tv/episodes/2015_08_19-ubuntu_slaughters_k...
It certainly doesn't remove any file contents and to get a clean state, surely reformatting would be both easier and quicker?
> Unix has a long tradition of doing a `rm -rf /` before reinstalling a system. I don't agree with the people saying "don't do that".
So, yes, "tradition".
Hope that helps.