@Pantherina@feddit.de to linuxmemes@lemmy.world • 10 months agolol sudo rm -rf /feddit.deimagemessage-square124fedilinkarrow-up11.34Karrow-down122
arrow-up11.31Karrow-down1imagelol sudo rm -rf /feddit.de@Pantherina@feddit.de to linuxmemes@lemmy.world • 10 months agomessage-square124fedilink
minus-squareBoneheadlinkfedilink19•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-squareNaibofTabrlinkfedilinkEnglish8•10 months agoThis is the best advice in the whole thread. Check what you’re doing before you do it.
minus-square@naonintendois@programming.devlinkfedilink5•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-square@redcalcium@lemmy.institutelinkfedilink2•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.
This is the best advice in the whole thread.
Check what you’re doing before you do it.
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
not if you use
/*
. gp was totally screwed with their typo.