2

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

Ravexina
  • 55,668
  • 25
  • 164
  • 183
guyd
  • 955

3 Answers3

3

Fist type

pidof vlc

after

kill -9  pid

or

pkill pid
2

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.

terdon
  • 100,812
Ravexina
  • 55,668
  • 25
  • 164
  • 183
1

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

waltinator
  • 36,399