You're viewing a single thread.
I_like_cats @lemmy.one 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 resist28 0 Replyunalivejoy @lemm.ee Similarly,
$$
is the current PID,$PPID
is the parent PID. (Bash)5 0 ReplyHappyFrog @lemmy.blahaj.zone So 'kill -9 $$' is just suicide?
3 0 Replyunalivejoy @lemm.ee 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.5 0 Replyjoulethief @compuverse.uk You can type
seppuku
for that3 0 Reply
SoonaPaana @lemmy.world Also please refresh my memory on how to find the process ID
5 0 ReplyI_like_cats @lemmy.one 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
10 0 Replyassaultpotato @sh.itjust.works I use
ps -aux | grep $EXECUTABLE
5 0 ReplyRefurbished Refurbisher @lemmy.sdf.org htop or any process monitor will tell you.
2 0 Replygayhitler420 @lemm.ee Pidof
1 0 ReplyKrzd @lemmy.world
top for Ubuntu at least will show you the top processes, I think sorted by averaged CPU usage.
1 0 Reply
AnUnusualRelic @lemmy.world
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.
4 0 Reply