22

VLC doesnt quit. How do I force quit the application?

7

2 Answers 2

35

You can use based on name pkill

pkill vlc

If that doesn't work, try:

pkill -9 vlc
6
  • I removed the sudo because i) you should never run sudo 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.
    – terdon
    Commented Apr 5, 2016 at 10:28
  • 2
    I used -9 because OP want "force"
    – EdiD
    Commented Apr 5, 2016 at 10:31
  • 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 :)
    – terdon
    Commented Apr 5, 2016 at 10:41
  • I guess :) and for those who have more than just one e.g. vlc instance launched using xkill is a good way to resolve the problem
    – EdiD
    Commented Apr 5, 2016 at 10:47
  • Thanks, this saves me plenty reboots Commented Feb 16, 2021 at 6:22
27

Run this command to find out the PID it is using

ps aux | grep vlc

then run

sudo kill -9 <PID NUMBER>
4
  • I would rather be interesting finding the cause for this. And get it fixed by raising bug.
    – Pushpendra
    Commented Dec 21, 2019 at 18:02
  • 1
    I 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
  • That's pretty basic. PID is always a number.
    – bhordupur
    Commented Nov 25, 2021 at 22:37
  • 1
    @NZDev updated the answer.
    – bhordupur
    Commented Dec 8, 2021 at 10:11

Not the answer you're looking for? Browse other questions tagged .