restart linux from command line code example
Example 1: command to restart linux
sudo reboot
Example 2: restart server centos
reboot -h now
Example 3: centos reboot
shutdown -r now
sudo reboot
reboot -h now
shutdown -r now