Ubuntu Basic Terminal commands Restart Ubuntu


Example

You can restart ubuntu from command line. Below is example of restarting ubuntu immediately.

 sudo reboot

You need to have sudo privilege in order to use this command.

Another commands with same results are sudo shutdown -r now and sudo init 6.