The proper method of rebooting a Linux system ensures data integrity by terminating processes and synchronizing the filesystems.
To reboot a Linux system, use the following command:
shutdown -r
To reboot immediately, specify the command with the now option:
shutdown -r now