How do I kill and restart TeamViewer 10 on ubuntu from the command line?

I tried running sudo kill -HUP teamviewer* and other variants (TeamViewer.exe; which I got from the system monitor) with no luck.

I have an issue sometimes with Teamviewer hanging and it would be nice not to have to reboot my system to get TV10 working again.


In other versions of teamviewer some times the daemon has to be restarted the in order to run the teamviewer app again after closing it.

sudo teamviewer --daemon stop
sudo teamviewer --daemon start


sudo teamviewer --daemon restart
  • This worked perfectly for me. It's probably a much more elegant way to do it than killing the process. Jun 21 '17 at 18:47

These work too:

sudo service teamviewerd stop
sudo service teamviewerd start

kill accepts PIDs, not process command names. Try pkill, or killall:

sudo pkill TeamViewer.exe


sudo pkill -f TeamViewer.exe
  • The pkill command did the trick to kill TeamViewer. How do I restart? Mar 8 '15 at 20:52
  • @NotMy1RealName how do you usually start it?
    – muru
    Mar 8 '15 at 20:56
  • 2
    It starts at boot. However, the issue is that the program crashes at times and needs to be killed and restarted. I've xkill 'd the program, but I can't restart it unless I reboot. Very inconvenient. Mar 9 '15 at 1:20

In Ubuntu 16.04

sudo systemctl stop teamviewerd.service
sudo systemctl start teamviewerd.service


sudo systemctl restart teamviewerd.service
  • For me It also worked without the ending .service. Mar 15 '20 at 9:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.