How to reboot a Linux server
Published on
To safely reboot your Linux server, run the following command:
sudo sync && sudo systemctl reboot
This command does two things:
syncwrites all data in memory to disk, preventing data loss.systemctl rebootreboots the server using systemd.
Closing thoughts
Rebooting will disconnect all users and stop active connections. Plan accordingly for production servers!
This post was tagged: