Lanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world · edit-22 months agoSeriously this is a joke. Do NOT try thismidwest.socialimagemessage-square50fedilinkarrow-up1342arrow-down182
arrow-up1260arrow-down1imageSeriously this is a joke. Do NOT try thismidwest.socialLanky_Pomegranate530@midwest.social to linuxmemes@lemmy.world · edit-22 months agomessage-square50fedilink
minus-squarebandwidthcrisis@lemmy.worldlinkfedilinkarrow-up11·2 months agoNever create a file named “-rf *” unless you really plan on keeping it.
minus-squaredwt@feddit.orglinkfedilinkDeutscharrow-up16·edit-22 months agorm ./—rf\ \* Am I missing something?
minus-squarebandwidthcrisis@lemmy.worldlinkfedilinkarrow-up11·2 months agoI’m not sure that you belong in this thread :)
minus-squareone_knight_scripting@lemmy.worldlinkfedilinkarrow-up3·edit-22 months agoI’m not going to try it but… rm “./-rf *” would do the same? rm “./-rf \*” maybe?
minus-squaredwt@feddit.orglinkfedilinkDeutscharrow-up3·2 months agoCouldn’t get single quotes to type on my phone, but best to always use them for problems like that, to completely get rid of shell interference.
minus-squareone_knight_scripting@lemmy.worldlinkfedilinkarrow-up1·2 months agoI always forget about the single quotes.
minus-squaredwt@feddit.orglinkfedilinkDeutscharrow-up1·2 months agoIf you do want to try, just start a docker container and try inside there. That should negate all risk
minus-squareDrew@sopuli.xyzlinkfedilinkarrow-up3·2 months agoif you use fish you can tab-cycle tour way to the file
Never create a file named “-rf *” unless you really plan on keeping it.
rm ./—rf\ \*
Am I missing something?
I’m not sure that you belong in this thread :)
I’m not going to try it but… rm “./-rf *” would do the same? rm “./-rf \*” maybe?
Couldn’t get single quotes to type on my phone, but best to always use them for problems like that, to completely get rid of shell interference.
I always forget about the single quotes.
If you do want to try, just start a docker container and try inside there. That should negate all risk
if you use fish you can tab-cycle tour way to the file
rm ./-rf