Linux – How to Restart Ubuntu from the Command-Line

command linelinuxrebootUbuntu

Because of my problem with mouse-clicks being ignored in Ubuntu, I want to restart from the command-line. (I have an open Terminal, and the keyboard is not ignored.)

How do I restart a computer running Linux (or more specifically Ubuntu) from the command-line?

Best Answer

There's a few ways:

sudo reboot
sudo init 6
sudo shutdown -r now