shutdown

Shutdown and reboot the system.

Install

All systems
curl cmd.cat/shutdown.sh
Debian Debian
apt-get install sysvinit
Ubuntu
apt-get install upstart-sysv
Arch Arch Linux
pacman -S systemd-sysvcompat
image/svg+xml Kali Linux
apt-get install runit-init
CentOS
yum install systemd
Fedora
dnf install systemd
Raspbian
apt-get install upstart

Shutdown and reboot the system.

  • Power off (halt) immediately:
    shutdown -h now
  • Reboot immediately:
    shutdown -r now
  • Reboot in 5 minutes:
    shutdown -r +5 &
  • Shutdown at 1:00 pm (Uses 24h clock):
    shutdown -h 13:00
  • Cancel a pending shutdown/reboot operation:
    shutdown -c

© tl;dr; authors and contributors