With suicide, you have a chance to get your affairs in order. kill -9 $$ is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.
xkill lets you click on any X application, at which point it will close the X server connection. In most cases the client application will self-terminate at the loss of the X connection. It's wonderfully straightforward.
39 Comments
sharkfucker420@lemmy.ml · 41 pts · 2y
Super easy
Sudo rm -rf /*
Diplomjodler@feddit.de · 28 pts · 2y
I thought that removes the French language pack?
Lampadaire_raclette@jlai.lu · 12 pts · 2y
Oui
madeline@lemmy.blahaj.zone · 8 pts · 2y
yeah it probably does
letsgo@lemm.ee · 3 pts · 2y
No, that's rm -fr /*
steventhedev@lemmy.world · 29 pts · 2y
Uninterruptible sleep makes this harder than it looks
I_like_cats@lemmy.one · 26 pts · 2y
It's easy. Just open up a terminal and type
(Replace the $PID with the process id of the process) if you don't know the process id you can do
If these don't work you can add a
-9to banish them and give them no chance to resistSoonaPaana@lemmy.world · 5 pts · 2y
Also please refresh my memory on how to find the process ID
I_like_cats@lemmy.one · 11 pts · 2y
You can do
and the PID is in the second column of the output. However for this use case I recommend a process manager like htop or btop
assaultpotato@sh.itjust.works · 5 pts · 2y
I use
ps -aux | grep $EXECUTABLErefurbishedrefurbisher@lemmy.sdf.org · 2 pts · 2y
htop or any process monitor will tell you.
Krzd@lemmy.world · 1 pts · 2y
top for Ubuntu at least will show you the top processes, I think sorted by averaged CPU usage.
joyjoy@lemm.ee · 4 pts · 2y
Similarly,
$$is the current PID,$PPIDis the parent PID. (Bash)HappyFrog@lemmy.blahaj.zone · 3 pts · 2y
So 'kill -9 $$' is just suicide?
joyjoy@lemm.ee · 4 pts · 2y
With suicide, you have a chance to get your affairs in order.
kill -9 $$is hiring an assassin to kill you and not tell you when it will happen. It happens suddenly without warning.joulethief@compuverse.uk · 3 pts · 2y
You can type
seppukufor thatAnUnusualRelic@lemmy.world · 4 pts · 2y
You probably want to get on the habit of using pkill instead of killall in case you're ever on a different system. You could have a surprise.
Dasnap@lemmy.world · 18 pts · 2y
Kid named process:
Viking_Hippie@lemmy.world · 3 pts · 2y
I remember that kid! She was friends with that boy named Sue, right? Both of them always hanging out with little Bobby tables?
NaibofTabr@infosec.pub · 17 pts · 2y
xkill (assuming GUI and not headless/remote)
xkill lets you click on any X application, at which point it will close the X server connection. In most cases the client application will self-terminate at the loss of the X connection. It's wonderfully straightforward.
Smorty@lemmy.blahaj.zone · 5 pts · 2y
True, xkill is super easy to use. Who needs a task manager, if you can just click on the program you want to close.
zyratoxx@lemm.ee · 13 pts · 2y
KWin has this shortcut (Ctrl + Win + Esc) that turns your cursor into a skull that kills the windows you click on
FGoo@sh.itjust.works · 4 pts · 2y
For me its Ctrl+Alt+Esc that does it, Ctrl+Meta+Esc just highlights where my mouse cursor is.
zyratoxx@lemm.ee · 2 pts · 2y
Could be a distro related difference ^^
nawordar@lemmy.ml · 3 pts · 2y
Does it work on Wayland?
lengau@midwest.social · 3 pts · 2y
Yes, in Wayland it's built into kwin.
zyratoxx@lemm.ee · 2 pts · 2y
It does work for me at least
dadarobot@lemmy.sdf.org · 6 pts · 2y
pkill
Caboose12000@lemmy.world · 1 pts · 2y
pkill
NegativeLookBehind@lemmy.world · 4 pts · 2y
superduperenigma@lemmy.world · 4 pts · 2y
!veryrealtechpics@lemmy.world
0x2d@lemmy.ml · 3 pts · 2y
immediately subscribed lol
LordKitsuna@lemmy.world · 4 pts · 2y
Just open htop, find the process you wish to kill. Press F9,9,enter.
Done task killed
ProgrammingSocks@pawb.social · 4 pts · 2y
cows_are_underrated@feddit.de · 3 pts · 2y
pkill
Or what I prefer:
pkill -f
SpunkyMcGoo@lemmy.world · 2 pts · 2y
at least on GNOME you can just open the system monitor and use it like task manager
Thcdenton@lemmy.world · 2 pts · 2y
htop is how I usually send signals. TUIs are fun!
Toes@ani.social · 1 pts · 2y
sudo init 0
737@lemmy.blahaj.zone · 1 pts · 2y
Smorty@lemmy.blahaj.zone · 1 pts · 2y
Uh, I'm not a cool terminal god, I just know how to use vim, so xkill is my way.
lengau@midwest.social · 2 pts · 2y
I use the terminal on a daily basis. My job involves writing software for terminals.
Ctrl+Meta+Esc in KDE is still how I kill a misbehaving graphical app.