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
Fist type
pidof vlc
after
kill -9 pid
or
pkill pid
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.
xkill
You can also combine kill and pidof:
kill
pidof
kill $(pidof -s vlc)
or use killall:
killall vlc
which kill all instances.
Find the process with pgrep, kill it with pkill. Read man pgrep (the same man page documents pkill)
pgrep
pkill
man pgrep
man