gun@lemmy.ml to Linux@lemmy.mlEnglish · 24 hours agoTried to rm -r my .cache but accidentally did .config instead...message-squaremessage-square38fedilinkarrow-up154file-text
arrow-up154message-squareTried to rm -r my .cache but accidentally did .config instead...gun@lemmy.ml to Linux@lemmy.mlEnglish · 24 hours agomessage-square38fedilinkfile-text
minus-squarexorlinkfedilinkEnglisharrow-up10·11 hours 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-up8·10 hours agoWhen I’m unsure, I ls <the-glob>, chek, then replace ls with rm.
minus-squaretorgeir@lemmy.mllinkfedilinkarrow-up3·4 hours agoThis. When the ls command works, hit ctrl-a, meta-d, type rm, enter.
minus-squareCorr@lemm.eelinkfedilinkarrow-up3·10 hours agoI really like this # idea. I’ve also taken to holding off on adding sudo when deleting privileged files
minus-squareExtremeDullard@lemmy.sdf.orglinkfedilinkarrow-up1·10 hours agoI never thought of doing that in 40 years. It’s a great idea actually. Thanks!
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
.This. When the ls command works, hit ctrl-a, meta-d, type rm, enter.
Oh, didn’t knew about
Alt d
. ThxI really like this # idea. I’ve also taken to holding off on adding sudo when deleting privileged files
I never thought of doing that in 40 years. It’s a great idea actually. Thanks!