Sometimes things go wrong and we have to kill a running process. In this how-to we show you how easy this can be via the terminal.
How To Kill a Process in Linux : Read more
How To Kill a Process in Linux : Read more
pkill
to be most useful. But this is probably because I often need to kill Java processes, and they all share the same executable, so killall java
is obviously not an option. With pkill
, I can kill a process not by its name, but by its argument list, e. g. pkill -f some-app.jar
.pgrep
works better. Especially in scripts, where it’s important that the process search command doesn’t match itself.