linux reboot command line code example Example 1: centos reboot shutdown -r now Example 2: reboot server linux sudo shutdown –r or sudo reboot