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:
sync
writes all data in memory to disk, preventing data loss.systemctl reboot
reboots the server using systemd.
Closing thoughts
Rebooting will disconnect all users and stop active connections. Plan accordingly for production servers!
This post was tagged: