829
you are viewing a single comment's thread
view the rest of the comments
[-] explodicle@local106.com 3 points 7 months ago

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.

[-] Black616Angel@feddit.de 4 points 7 months ago

My PC has a dedicated key to kill all processes.

[-] kionite231@lemmy.ca 2 points 7 months ago

sudo poweroff?

[-] Vanshaj@lemmy.world 4 points 7 months ago

I use a process manager like btop for this.

[-] SorryQuick@lemmy.ca 4 points 7 months ago

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.

[-] GentriFriedRice@lemmy.world 1 points 7 months ago

CTRL-C -- SIGINT CTRL-\ -- SIGQUIT CTRL-Z + kill -9 %1 -- SIGTSTP + SIGKILL

this post was submitted on 03 Feb 2024
829 points (97.4% liked)

Programmer Humor

19187 readers
1099 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS