reboot liniux code example Example 1: command to restart linux Click to copysudo reboot Example 2: restart computer command linux Click to copy$ sudo shutdown -r now