which command used to reload the system in ubuntu code example Example 1: command to restart linux sudo reboot Example 2: restart computer command linux $ sudo shutdown -r now