@[email protected] to [email protected] • 1 year agoA Linux user's nightmare: the machine was wiped clean with one clickwww.mikrobitti.fiexternal-linkmessage-square50fedilinkarrow-up1116cross-posted to: [email protected]
arrow-up1116external-linkA Linux user's nightmare: the machine was wiped clean with one clickwww.mikrobitti.fi@[email protected] to [email protected] • 1 year agomessage-square50fedilinkcross-posted to: [email protected]
minus-squareDandroidlinkfedilink19•1 year agoDon’t most distros have safeguards against this? I tried sudo rm -rf / in an Ubuntu VM that I was about to delete just to see what happened, and it gave me a warning. I had to add some other option to bypass the warning.
minus-squareEager EaglelinkfedilinkEnglish15•1 year agoit apparently was defaulting to the home dir, not /
Don’t most distros have safeguards against this? I tried
sudo rm -rf /
in an Ubuntu VM that I was about to delete just to see what happened, and it gave me a warning. I had to add some other option to bypass the warning.Yes,
rm -rf --allow-unsafe
Or something is required
--no-preserve-root
it apparently was defaulting to the home dir, not
/
Oh, oof.
Hopefully most people take regular snapshots.