News How To Kill a Process in Linux

I find 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.
 
If often use that one too, but sometimes pgrep works better. Especially in scripts, where it’s important that the process search command doesn’t match itself.
 
I use xkill because its more fast when my pf get fire... just dropdown terminal emulator and xkill with touchscreen
 
Anyone who has worked with unix/linux for more then a month learns this. This article is just another example of someone getting paid by the word.
 
  • Like
Reactions: Thunder64

TRENDING THREADS