How Do You Shutdown a Linux Server Gracefully?

How Do You Shutdown a Linux Server Gracefully?
Contents

How do you shutdown a Linux server?

The essential Linux shutdown commands

  1. shutdown [OPTION] [TIME] [MESSAGE]
  2. shutdown -h.
  3. shutdown.
  4. shutdown -r.
  5. shutdown -h 0.
  6. shutdown now.
  7. shutdown -r 0.
  8. shutdown -r now.

What is Linux power off command?

Use reboot to reboot the system. Use halt to halt the system without powering it off. To power off the machine, use poweroff or shutdown -h now. The systemd init system provides additional commands that perform the same functions; for example systemctl reboot or systemctl poweroff.

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.