Lanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world · edit-26 months agoSeriously this is a joke. Do NOT try thismidwest.socialimagemessage-square58fedilinkarrow-up1359arrow-down185
arrow-up1274arrow-down1imageSeriously this is a joke. Do NOT try thismidwest.socialLanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world · edit-26 months agomessage-square58fedilink
minus-squarerbn@sopuli.xyzlinkfedilinkarrow-up50arrow-down1·edit-26 months agoI think it would continue even after it’s own deletion as the binary is already loaded into memory, so process is not dependent on the file system. Still doubt that it’ll complete successfully. Most likely the system crashes in the middle.
minus-squarekirk781@discuss.tchncs.delinkfedilinkarrow-up13·6 months agoI thought - - no-preserve root also needed to be added as an argument for self destruct to completely work.
minus-squareElvith Ma'for@feddit.orglinkfedilinkarrow-up12·6 months agoYes, though you could also do rm -rf /* afaik to not need --no-preserve-root
minus-squareblibla@slrpnk.netlinkfedilinkarrow-up1·6 months agoi dont get why you can’t just do sudo rm -fr /
minus-squareElvith Ma'for@feddit.orglinkfedilinkarrow-up3·6 months agobecause it won’t let you do that: elvith@testvm:~$ sudo rm -fr / rm: it is dangerous to operate recursively on ‘/’ rm: use --no-preserve-root to override this failsafe
minus-squareDefederateLemmyMl@feddit.nllinkfedilinkEnglisharrow-up1arrow-down1·6 months ago as the binary is already loaded into memory That’s not the reason why it continues. It’s because there’s still a file descriptor open to rm.
I think it would continue even after it’s own deletion as the binary is already loaded into memory, so process is not dependent on the file system. Still doubt that it’ll complete successfully. Most likely the system crashes in the middle.
I thought - - no-preserve root also needed to be added as an argument for self destruct to completely work.
Yes, though you could also do
rm -rf /*
afaik to not need--no-preserve-root
i dont get why you can’t just do
sudo rm -fr /
because it won’t let you do that:
That’s not the reason why it continues. It’s because there’s still a file descriptor open to
rm
.