Pantherina@feddit.de to linuxmemes@lemmy.world · 10 months agolol sudo rm -rf /feddit.deimagemessage-square124fedilinkarrow-up11.31Karrow-down119
arrow-up11.29Karrow-down1imagelol sudo rm -rf /feddit.dePantherina@feddit.de to linuxmemes@lemmy.world · 10 months agomessage-square124fedilink
minus-squareBonehead@kbin.sociallinkfedilinkarrow-up18·10 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-up5·10 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
minus-squareredcalcium@lemmy.institutelinkfedilinkarrow-up2·10 months agonot if you use /*. gp was totally screwed with their typo.
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 thoughnot if you use
/*
. gp was totally screwed with their typo./* still works I think