Reboot is one of the commands in Linux that you will have to be careful with. In this tutorial, we will show you how to reboot your Linux machine – Dedicated Server or VPS with SSH and the Reboot Command. Use the SSH reboot command with care and only when necessary.
Reboot your machine with SSH gracefully
reboot
Reboot forcefully, this is more dangerous to use
reboot -f
Reboot with power off, this will shut down the machine instead of rebooting
reboot -p
No matter how you use the reboot command you should be cautious as it will stop any services that you have running. This is especially important for SQL queries, we would recommend that you reboot your machine gracefully.