linux reboot system from terminal code example Example: restart computer command linux $ sudo shutdown -r now