LeTak@feddit.org to linuxmemes@lemmy.world · 4 months agoMen can't read our signalsfeddit.orgimagemessage-square45fedilinkarrow-up1376arrow-down119
arrow-up1357arrow-down1imageMen can't read our signalsfeddit.orgLeTak@feddit.org to linuxmemes@lemmy.world · 4 months agomessage-square45fedilink
minus-squareMatriks404@lemmy.worldlinkfedilinkarrow-up20·edit-24 months agoMe: kill -9 $$ It’s only a joke btw.
minus-squaretoynbee@lemmy.worldlinkfedilinkarrow-up15·edit-24 months agoDamn, dude. Glad it’s just a joke, but that’s the nerdiest and most circumspect way I’ve ever seen this expressed.
minus-squareredjard@lemmy.dbzer0.comlinkfedilinkarrow-up3·4 months agoI type kill -4 $$ all the time so I don’t pollute bash history. It’s probably up there as most typed command in 3rd place after l and cd ... I swear I can type the entire thing in 1s flat on a good day.
minus-squaretreesoid@lemmy.worldlinkfedilinkarrow-up1·5 days agoCtrl+D sends EOF, which also closes the shell, but is less to write.
minus-squareredjard@lemmy.dbzer0.comlinkfedilinkarrow-up1·5 days agoBut it saves the command history to disk. It makes the exit command redundant, so that is removed from the history, but all other commands in all cases but mistakenly sshing into the wrong machine will still be saved.
minus-squaretisktisk@piefed.sociallinkfedilinkEnglisharrow-up2·4 months agoI’ve seen 1 dollar sign, what does two mean in this context?
minus-squareppue@lemmy.worldlinkfedilinkarrow-up5·4 months agoIt is a variable holding the process id of the shell instance interpreting the command. You could say “yourself” instead.
Me:
kill -9 $$It’s only a joke btw.
Damn, dude. Glad it’s just a joke, but that’s the nerdiest and most circumspect way I’ve ever seen this expressed.
I type
kill -4 $$all the time so I don’t pollute bash history. It’s probably up there as most typed command in 3rd place afterlandcd ...I swear I can type the entire thing in 1s flat on a good day.
Ctrl+D sends EOF, which also closes the shell, but is less to write.
But it saves the command history to disk.
It makes the exit command redundant, so that is removed from the history, but all other commands in all cases but mistakenly sshing into the wrong machine will still be saved.
I’ve seen 1 dollar sign, what does two mean in this context?
It is a variable holding the process id of the shell instance interpreting the command. You could say “yourself” instead.