gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agoTried to rm -r my .cache but accidentally did .config instead...message-squaremessage-square39fedilinkarrow-up157file-text
arrow-up157message-squareTried to rm -r my .cache but accidentally did .config instead...gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agomessage-square39fedilinkfile-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·10 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·33 minutes agoFor which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
minus-squarewh0_careslinkfedilinkarrow-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.