280
rule (lemmy.ml)
submitted 9 months ago by 0x2d@lemmy.ml to c/196@lemmy.blahaj.zone
top 44 comments
sorted by: hot top controversial new old
[-] sharkfucker420@lemmy.ml 43 points 9 months ago* (last edited 9 months ago)
[-] Diplomjodler@feddit.de 29 points 9 months ago

I thought that removes the French language pack?

[-] madeline@lemmy.blahaj.zone 8 points 9 months ago

yeah it probably does

[-] letsgo@lemm.ee 5 points 9 months ago

No, that's rm -fr /*

[-] verdare@beehaw.org 5 points 9 months ago

Pedant time: That actually wouldn’t kill any process that’s already loaded in memory and running. Unless the process attempts to access something else from the filesystem and crashes.

[-] I_like_cats@lemmy.one 29 points 9 months ago

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

[-] joyjoy@lemm.ee 5 points 9 months ago

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

[-] HappyFrog@lemmy.blahaj.zone 3 points 9 months ago

So 'kill -9 $$' is just suicide?

[-] joyjoy@lemm.ee 5 points 9 months ago

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 points 9 months ago

You can type seppuku for that

[-] SoonaPaana@lemmy.world 5 points 9 months ago

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

[-] I_like_cats@lemmy.one 11 points 9 months ago

You can do

ps aux | grep -i <part of process name>

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 points 9 months ago

I use ps -aux | grep $EXECUTABLE

htop or any process monitor will tell you.

[-] Krzd@lemmy.world 1 points 9 months ago

top for Ubuntu at least will show you the top processes, I think sorted by averaged CPU usage.

[-] gayhitler420@lemm.ee 1 points 9 months ago
[-] AnUnusualRelic@lemmy.world 4 points 9 months ago

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.

[-] steventhedev@lemmy.world 28 points 9 months ago

Uninterruptible sleep makes this harder than it looks

[-] Dasnap@lemmy.world 19 points 9 months ago
[-] Viking_Hippie@lemmy.world 3 points 9 months ago

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 18 points 9 months ago

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 points 9 months ago

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 14 points 9 months ago* (last edited 9 months ago)

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 points 9 months ago* (last edited 9 months ago)

For me its Ctrl+Alt+Esc that does it, Ctrl+Meta+Esc just highlights where my mouse cursor is.

[-] zyratoxx@lemm.ee 2 points 9 months ago

Could be a distro related difference ^^

[-] nawordar@lemmy.ml 3 points 9 months ago
[-] lengau@midwest.social 3 points 9 months ago

Yes, in Wayland it's built into kwin.

[-] zyratoxx@lemm.ee 2 points 9 months ago

It does work for me at least

[-] dadarobot@lemmy.sdf.org 7 points 9 months ago
[-] Caboose12000@lemmy.world 1 points 9 months ago
[-] NegativeLookBehind@lemmy.world 5 points 9 months ago

I usually just scream into my keyboard

[-] superduperenigma@lemmy.world 4 points 9 months ago
[-] 0x2d@lemmy.ml 3 points 9 months ago

immediately subscribed lol

[-] cows_are_underrated@feddit.de 4 points 9 months ago

pkill

Or what I prefer:

pkill -f <process/programm name>

[-] LordKitsuna@lemmy.world 4 points 9 months ago

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

Done task killed

[-] ProgrammingSocks@pawb.social 4 points 9 months ago
ps -e | grep app
kill id
[-] SpunkyMcGoo@lemmy.world 2 points 9 months ago

at least on GNOME you can just open the system monitor and use it like task manager

[-] Thcdenton@lemmy.world 2 points 9 months ago

htop is how I usually send signals. TUIs are fun!

[-] 737@lemmy.blahaj.zone 1 points 9 months ago
[-] Toes@ani.social 1 points 9 months ago

sudo init 0

[-] xeger@beehaw.org 1 points 9 months ago

I prefer matricide: sudo kill -9 1

[-] Smorty@lemmy.blahaj.zone 1 points 9 months ago

Uh, I'm not a cool terminal god, I just know how to use vim, so xkill is my way.

[-] lengau@midwest.social 2 points 9 months ago

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.

this post was submitted on 17 Feb 2024
280 points (100.0% liked)

196

16501 readers
3618 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS