How To Install Shutdown In Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Shutdown In Debian, Ubuntu, Arch, Kali, CentOS, Fedora And Raspbian?

shutdown

Shutdown and reboot the system.

Install shutdown

  • Debian apt-get install sysvinit Click to copy
  • Ubuntu apt-get install upstart-sysv Click to copy
  • Arch Linux pacman -S systemd-sysvcompat Click to copy
  • Kali Linux apt-get install runit-init Click to copy
  • CentOS yum install systemd Click to copy
  • Fedora dnf install systemd Click to copy
  • Raspbian apt-get install upstart Click to copy

Shutdown and reboot the system.

How to use shutdown?

Below are few example commands for shutdown that you can use in the terminal.

Power off (halt) immediately:
shutdown -h nowClick to copy
Reboot immediately:
shutdown -r nowClick to copy
Reboot in 5 minutes:
shutdown -r +5 &Click to copy
Shutdown at 1:00 pm (Uses 24h clock):
shutdown -h 13:00Click to copy
Cancel a pending shutdown/reboot operation:
shutdown -cClick to copy
Installation of latest shutdown command is available for Debian, Ubuntu, Arch, Kali, CentOS, Fedora and Raspbian. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.