obnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 18 hours agoNoicelemmy.mlimagemessage-square51linkfedilinkarrow-up11
arrow-up11imageNoicelemmy.mlobnomus@lemmy.ml to linuxmemes@lemmy.worldEnglish · 18 hours agomessage-square51linkfedilink
minus-squaresoftotteep@pawb.sociallinkfedilinkEnglisharrow-up0·9 hours 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-up0·6 hours 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-squareyeehaw@lemmy.calinkfedilinkarrow-up0·8 hours 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 ⬆️
I assume if you are silly enough to type in rm -rf /etc, then you are silly enough to type in your password 😅