restart terminal command linux code example Example 1: restart server centos Click to copyreboot -h now Example 2: restart computer command linux Click to copy$ sudo shutdown -r now