linux restart system code example Example 1: command to restart linux sudo reboot Example 2: linux restart service systemctl restart SERVICE_NAME