rule

271 points · 39 comments · view on lemmy.world

39 Comments

sharkfucker420@lemmy.ml · 41 pts · 2y (4 replies)

Super easy

Sudo rm -rf /*

Diplomjodler@feddit.de · 28 pts · 2y (3 replies)

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 (10 replies)

It's easy. Just open up a terminal and type

kill $PID

(Replace the $PID with the process id of the process) if you don't know the process id you can do

killall process_name

If these don't work you can add a -9 to banish them and give them no chance to resist

SoonaPaana@lemmy.world · 5 pts · 2y (4 replies)

Also please refresh my memory on how to find the process ID

I_like_cats@lemmy.one · 11 pts · 2y

You can do

ps aux | grep -i 

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 $EXECUTABLE

refurbishedrefurbisher@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 (3 replies)

Similarly, $$ is the current PID, $PPID is the parent PID. (Bash)

HappyFrog@lemmy.blahaj.zone · 3 pts · 2y (2 replies)

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 seppuku for that

AnUnusualRelic@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 (1 reply)

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 (1 reply)

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 (5 replies)

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 (1 reply)

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 (2 replies)

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 (1 reply)

pkill

Caboose12000@lemmy.world · 1 pts · 2y

pkill

NegativeLookBehind@lemmy.world · 4 pts · 2y
[ removed ]
superduperenigma@lemmy.world · 4 pts · 2y (1 reply)
0x2d@lemmy.ml · 3 pts · 2y

immediately subscribed lol

LordKitsuna@lemmy.world · 4 pts · 2y (1 reply)

Just open htop, find the process you wish to kill. Press F9,9,enter.

Done task killed

ProgrammingSocks@pawb.social · 4 pts · 2y
ps -e | grep app
kill id
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
[ removed ]
Smorty@lemmy.blahaj.zone · 1 pts · 2y (1 reply)

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.