💾 Archived View for perso.pw › blog › articles › 17.gmi captured on 2023-01-29 at 04:24:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-17)

➡️ Next capture (2023-05-24)

🚧 View Differences

-=-=-=-=-=-=-

How to kill processes by their name

NIL=> Comment on Mastodon

If you want to kill a process by its name instead of its PID number,

which is easier if you have to kill processes from the same binary,

here are the commands depending of your operating system:

$ killall pid_name

$ pkill pid_name

Be careful with Solaris killall. With no argument, the command will

send a signal to every active process, which is not something you

want.

$ killall pid_name