how to reboot a server in linux code example Example: restart computer command linux $ sudo shutdown -r now