The following command will reboot the Linux machine. code example Example: command to restart linux sudo reboot