gun@lemmy.ml to Linux@lemmy.mlEnglish · 3 days agoTried to rm -r my .cache but accidentally did .config instead...message-squaremessage-square36fedilinkarrow-up13arrow-down10file-text
arrow-up13arrow-down1message-squareTried to rm -r my .cache but accidentally did .config instead...gun@lemmy.ml to Linux@lemmy.mlEnglish · 3 days agomessage-square36fedilinkfile-text
minus-squarexor@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up0·3 days agoI’m a big fan of starting the command with a #, then removing it once I’m happy with the command to defend against accidentally hitting enter Putting ~ next to the enter key on keyboards (at least UK ones) was an evil villain level decision
minus-squareZykino@programming.devlinkfedilinkarrow-up1·3 days agoWhen I’m unsure, I ls <the-glob>, chek, then replace ls with rm.
I’m a big fan of starting the command with a
#
, then removing it once I’m happy with the command to defend against accidentally hitting enterPutting
~
next to the enter key on keyboards (at least UK ones) was an evil villain level decisionWhen I’m unsure, I
ls <the-glob>
, chek, then replacels
withrm
.