▲ 65 ▼ Tried to rm -r my .cache but accidentally did .config instead... (lemmy.ml) submitted 2 years ago by gun@lemmy.ml to c/linux@lemmy.ml 56 comments fedilink hide all child comments I'm a complete moron, I should've had that backed up and used trash... I had to learn the hard way lol
[–] xor@lemmy.blahaj.zone 10 points 2 years ago (3 children) 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 enter Putting ~ next to the enter key on keyboards (at least UK ones) was an evil villain level decision permalink fedilink source parent hideshow 6 child comments replies: [–] Zykino@programming.dev 13 points 2 years ago (1 child) When I'm unsure, I ls <the-glob>, chek, then replace ls with rm. permalink fedilink source parent hideshow 2 child comments replies: [–] torgeir@lemmy.ml 5 points 2 years ago (1 child) This. When the ls command works, hit ctrl-a, meta-d, type rm, enter. permalink fedilink source parent hideshow 2 child comments replies: [–] Zykino@programming.dev 3 points 2 years ago Oh, didn't knew about Alt d. Thx permalink fedilink source parent [–] Corr@lemm.ee 3 points 2 years ago I really like this # idea. I've also taken to holding off on adding sudo when deleting privileged files permalink fedilink source parent [–] ExtremeDullard@lemmy.sdf.org 1 point 2 years ago I never thought of doing that in 40 years. It's a great idea actually. Thanks! permalink fedilink source parent
[–] Zykino@programming.dev 13 points 2 years ago (1 child) When I'm unsure, I ls <the-glob>, chek, then replace ls with rm. permalink fedilink source parent hideshow 2 child comments replies: [–] torgeir@lemmy.ml 5 points 2 years ago (1 child) This. When the ls command works, hit ctrl-a, meta-d, type rm, enter. permalink fedilink source parent hideshow 2 child comments replies: [–] Zykino@programming.dev 3 points 2 years ago Oh, didn't knew about Alt d. Thx permalink fedilink source parent
[–] torgeir@lemmy.ml 5 points 2 years ago (1 child) This. When the ls command works, hit ctrl-a, meta-d, type rm, enter. permalink fedilink source parent hideshow 2 child comments replies: [–] Zykino@programming.dev 3 points 2 years ago Oh, didn't knew about Alt d. Thx permalink fedilink source parent
[–] Zykino@programming.dev 3 points 2 years ago Oh, didn't knew about Alt d. Thx permalink fedilink source parent
[–] Corr@lemm.ee 3 points 2 years ago I really like this # idea. I've also taken to holding off on adding sudo when deleting privileged files permalink fedilink source parent
[–] ExtremeDullard@lemmy.sdf.org 1 point 2 years ago I never thought of doing that in 40 years. It's a great idea actually. Thanks! permalink fedilink source parent