Ok here’s a question I should have asked like way sooner.
In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.
Submitted 9 months ago by sag@lemm.ee to programmer_humor@programming.dev
https://lemm.ee/pictrs/image/bdfa0229-a4b8-4840-b1bb-e192b8bba9ba.jpeg
Ok here’s a question I should have asked like way sooner.
In Ubuntu (and similar distros), is there a hotkey to immediately kill the process? Like CTRL-C but harsher.
If you’re using X11, you can use xkill: https://en.m.wikipedia.org/wiki/Xkill
You can bind it to a key in gnome/kde (not sure how they handle custom keybinds. Otherwise add a call to xbindkeys to your .bashrc or equivalent). It kills any window you want, responsive or not.
As for the terminal, I don’t think you can send SIGKILL, but ctrl + \ will result in a core dump if you’re using bash.
My PC has a dedicated key to kill all processes.
sudo poweroff?
I use a process manager like btop for this.
CTRL-C – SIGINT
CTRL-\ – SIGQUIT
CTRL-Z + kill -9 %1
– SIGTSTP + SIGKILL
autosave is no good if you have live reload imo
The same can be applied for editors as well
Intellij being a good guy amd autosaving every few seconds. No more worrying about crtl+s.
I was never really aware I did this until I had to program something with hot reloading (I don’t remember what) and it was so insufferable…
I just do a full rebuild. Saves all files.
Auto-saving is the insurance against manually saving failing, which is the insurance against the computer or program failing.
It’s insurances all the way down, yet I’m still let down when versioning overwrites my changes.
Meanwhile, me over here with the self-doubt slamming ctrl-z
i just store everything in google drive and let chance take over
Except the autosave in BBEdit. I trust that with my life. It’s never lost ANYTHING in 30 years.
Excuse me i think you mean ctrl+c:w
janabuggs@beehaw.org 9 months ago
Ctrl+s+s+s+s+s
MonkeMischief@lemmy.today 9 months ago
LOL good point about just not releasing Ctrl.
The chances are non-zero that somebody out there attempts to release and press ctrl+s at the exact same time over and over like they’re hammering out Beethoven’s 5th. XD