Linux Command - poweroff, halt and reboot

poweroff, halt and reboot are commands to stop system hardward.

  • poweroff sends ACPI signal to tell the system to powerdown
  • halt stops CPU function, but leaves it powered on.
  • reboot reboots the system

The is also a shutdown command lets you schedule a time to halt, poweroff orreboot the machine.

Examples

Poweroff the system

1
poweroff

Note: if you are not logged in as root, prefix command with sudo

Halt the system

1
halt

Note: if you are not logged in as root, prefix command with sudo

Reboot the system

1
reboot

Note: if you are not logged in as root, prefix command with sudo

Note: Same as shutdown –r now

Reboot in 5 minutes

1
shutdown –r 5

Reference