restart ubuntu server command code example
Example 1: restart ubuntu server
Try using the following command to safely reboot:
sudo reboot
If, instead, you want to shut down the server safely, use this command:
sudo shutdown -h now
Example 2: How to restart Ubuntu via SSH?
sudo service ssh restart