3.3.3 Shutting down the System

Although you can use telinit to halt and reboot a system, the shutdown command is preferred as it notifies all logged-in users of the impending action.

For example, to shutdown a system in 5 minutes time and then reboot it:

# shutdown -r 5
The system is going down for reboot in 5 minutes!

To shutdown a system immediately:

# shutdown -h now

For more information, see the shutdown(8) manual page.