Ubuntu: Kill Process Ubuntu 16.04 [duplicate]



Question:

This question already has an answer here:

I wish to use command line ( bash ) to find and kill a process. How do I search for a known (VLC ) process and how do I kill it ?

Guy


Solution:1

As an alternative to other suggestions you can use xkill, in a terminal type xkill then click on your desired window (VLC, or any other). it will kill it.

You can also combine kill and pidof:

kill $(pidof -s vlc)  

or use killall:

killall vlc  

which kill all instances.


Solution:2

Fist type

pidof vlc  

after

kill -9  pid  

or

pkill pid  


Solution:3

Find the process with pgrep, kill it with pkill. Read man pgrep (the same man page documents pkill)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »