obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 10 days agoNoicelemmy.mlimagemessage-square117fedilinkarrow-up1423arrow-down19
arrow-up1414arrow-down1imageNoicelemmy.mlobnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 10 days agomessage-square117fedilink
minus-squaresoftotteep@pawb.sociallinkfedilinkEnglisharrow-up1·10 days ago But if you typed in sudo !! Right after, then you’re really fucked. Not if you don’t type your password.
minus-squareyeehaw@lemmy.calinkfedilinkarrow-up2·10 days agoI assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password 😅
minus-squareClownStatue@piefed.sociallinkfedilinkEnglisharrow-up2·10 days agoAdding to this, if you notice numbers next to your previous commands when you run history, you can do !<number> and it will rerun that command. Probably the second cool shell trick I learned back in the olden days or yore (mid-90s?) after ⬆️
minus-squareClownStatue@piefed.sociallinkfedilinkEnglisharrow-up1·9 days agoLearned that one embarrassingly much later.
Not if you don’t type your password.
I assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password 😅
Adding to this, if you notice numbers next to your previous commands when you run history, you can do !<number> and it will rerun that command. Probably the second cool shell trick I learned back in the olden days or yore (mid-90s?) after ⬆️
ctrl-r is generally quicker
Learned that one embarrassingly much later.