obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 24 days agoNoicelemmy.mlimagemessage-square122linkfedilinkarrow-up1479arrow-down110
arrow-up1469arrow-down1imageNoicelemmy.mlobnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 24 days agomessage-square122linkfedilink
minus-squaresoftotteep@pawb.sociallinkfedilinkEnglisharrow-up1·23 days ago But if you typed in sudo !! Right after, then you’re really fucked. Not if you don’t type your password.
minus-squareClownStatue@piefed.sociallinkfedilinkEnglisharrow-up3·23 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-squaremoopet@sh.itjust.workslinkfedilinkEnglisharrow-up3·23 days agoctrl-r is generally quicker
minus-squareClownStatue@piefed.sociallinkfedilinkEnglisharrow-up1·23 days agoLearned that one embarrassingly much later.
minus-squareyeehaw@lemmy.calinkfedilinkarrow-up2·23 days agoI assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password 😅
Not if you don’t type 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.
I assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password 😅