Elektrine lite

← Feed

@GaryGhost@lemmy.world

Post #1384954

2025-12-17 02:42 UTC

ps -ef | grep <process_name Kill -9 proces id I googled that -15 is better, I forgot what -9 even did, been using it for years.

Replies (2)

  • @black0ut@pawb.social 2025-12-17 04:35

    The number is the signal you send to the program. There’s a lot of signals you can send (not just 15 and 9). The difference between them is that 15 (called SIGTERM) tells the program to terminate by itself (so it can store its cached data, create a save without losing data or corrupting, drop all its open connections gracefully, etc). 9 (called SYGKILL) will forcefully kill a program, without waiting for it to properly close. You normally should send signal 15 to a program, to tell it to stop. If the program is frozen and it’s not responding or stopping, you then send signal 9 and forcefully kill it. No signal is “better” than the other, they just have different usecases.

    Open ##1384961

  • @utopiah@lemmy.ml 2025-12-17 05:40

    Maybe I interest you in pgrep? pkill? killall?

    Open ##1384964