gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agoTried to rm -r my .cache but accidentally did .config instead...message-squaremessage-square43fedilinkarrow-up158arrow-down12file-text
arrow-up156arrow-down1message-squareTried to rm -r my .cache but accidentally did .config instead...gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agomessage-square43fedilinkfile-text
minus-squareZozano@lemy.lollinkfedilinkEnglisharrow-up6·edit-210 hours agoThat’s why I always: cd .cache ls rm -r *
minus-squarePeer@discuss.tchncs.delinkfedilinkarrow-up10·9 hours agoType a space before rm to prevent it from being added to your history to be a extra careful.
minus-squareSayCyberOnceMore@feddit.uklinkfedilinkEnglisharrow-up1·17 minutes agoFor which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
minus-squarewh0_cares@lemmy.blahaj.zonelinkfedilinkarrow-up10·9 hours agoHoly shit, I never knew you could do that! I’ve always really wanted a feature to stop random commands from being added to my history.
That’s why I always:
Type a space before rm to prevent it from being added to your history to be a extra careful.
For which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
Holy shit, I never knew you could do that! I’ve always really wanted a feature to stop random commands from being added to my history.