News How To Kill a Process in Linux

Sergei Tachenov

Commendable
Jan 22, 2021
64
64
1,610
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.
 

Sergei Tachenov

Commendable
Jan 22, 2021
64
64
1,610
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.
 
Apr 16, 2022
1
0
10
I use xkill because its more fast when my pf get fire... just dropdown terminal emulator and xkill with touchscreen
 
Apr 17, 2022
1
1
10
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