Pantherina@feddit.de to linuxmemes@lemmy.world · 9 months agolol sudo rm -rf /feddit.deimagemessage-square90fedilinkarrow-up1397arrow-down15
arrow-up1392arrow-down1imagelol sudo rm -rf /feddit.dePantherina@feddit.de to linuxmemes@lemmy.world · 9 months agomessage-square90fedilink
minus-squareBonehead@kbin.sociallinkfedilinkarrow-up4·9 months agoAnd that’s why every rm command should start life as an ls command and then change the command and options while not touching the target directory. Takes a little longer, but saves so much hassle when you do fuck up.
minus-squarenaonintendois@programming.devlinkfedilinkarrow-up0·9 months agoRm was updated to actually log a warning in the -rf / cases, so that’s less likely to happen anymore. Still not a bad habit to use ls though
And that’s why every rm command should start life as an ls command and then change the command and options while not touching the target directory. Takes a little longer, but saves so much hassle when you do fuck up.
Rm was updated to actually log a warning in the
-rf /
cases, so that’s less likely to happen anymore. Still not a bad habit to use ls though/* still works I think