VLC doesnt quit. How do I force quit the application?
2 Answers
You can use based on name pkill
pkill vlc
If that doesn't work, try:
pkill -9 vlc
-
I removed the
sudo
because i) you should never runsudo
unless necessary and ii) in this case, that would have killed all cases of vlc running on the system. Not only those belonging to the OP. I also removed the-9
because that is very aggressive and is not necessary here.– terdonCommented Apr 5, 2016 at 10:28 -
2
-
Yes, I realized which is why I added it back. Still, it should be used as a last resort, not on the first try and not with
sudo
unless you know what you're doing. Don't get me wrong, this is a good answer, that's my upvote there :)– terdonCommented Apr 5, 2016 at 10:41 -
I guess :) and for those who have more than just one e.g.
vlc
instance launched usingxkill
is a good way to resolve the problem– EdiDCommented Apr 5, 2016 at 10:47 -
Run this command to find out the PID it is using
ps aux | grep vlc
then run
sudo kill -9 <PID NUMBER>
-
I would rather be interesting finding the cause for this. And get it fixed by raising bug. Commented Dec 21, 2019 at 18:02
-
1I believe this answer is ambiguous. It possibly works if you know that PID is meant to be a number? to type the second command in literally I think might fail better to wrap the PID in <> e.g. sudo kill -9 <PID NUMBER> Commented Nov 25, 2021 at 21:31
-
-
1
xkill
+ Return. Then click on the application's window. Must be a dupe of something.