Summary

  • The ability to restart Linux using the terminal is beneficial for remote system administration and troubleshooting.
  • There are several methods for restarting a Linux system, including using the reboot, shutdown, systemctl, init, telinit, and REISUB commands, as well as restarting via SSH.
  • The reboot command safely terminates all running processes and restarts the system immediately or at a specific time.
  • Running the shutdown command with the -r option is an alternative way to schedule a reboot.
  • Modern Linux distributions should use the systemctl reboot command, whereas older distributions should use the init command to restart the system.
  • Using the telinit command is another way to achieve this on modern systems.
  • REISUB (Magic SysRq Key) allows for a safe restart in the event of a unresponsive system.
  • By using the REISUB key sequence, specific commands are sent to the kernel to forcefully restart the system.
  • Remote management of Linux servers can be done easily via SSH, where the same commands can be executed.
  • Finally, it is important to confirm that the user has the appropriate permissions to execute these restart commands.

By Anees Asghar

Original Article