reboot of the Linux VM code example Example 1: command to restart linux sudo reboot Example 2: centos reboot shutdown -r now