Shutting Down or Rebooting Linux
Look at all these shutdown and reboot commands: shutdown, halt, init 0, poweroff, Ctrl-Alt-Delete, etc. What's the right one to use?
It doesn't matter all that much; use what suits you. Only root can use these commands to shut down:
# shutdown -h now
or:
# poweroff
or:
# halt
To shut down in six minutes:
# shutdown -h +6
shutdown sends a notification to all logged-in users. To make your own message, use:
# shutdown -h +6 "Time to stop working and start partying."
Console users will see:
Broadcast message from root (pts/6) Wed Aug 14 13:51:24 2003
Time to stop working and start partying.
The system is going DOWN for system halt in 6 minutes!
To cancel a shutdown as root, use:
# shutdown -c
To reboot, you can use:
# shutdown -r now
or:
# reboot
or press Ctrl-Alt-Delete. Any user can do this, unless you disable it in /etc/inittab.
Look at all these shutdown and reboot commands: shutdown, halt, init 0, poweroff, Ctrl-Alt-Delete, etc. What's the right one to use?
It doesn't matter all that much; use what suits you. Only root can use these commands to shut down:
# shutdown -h now
or:
# poweroff
or:
# halt
To shut down in six minutes:
# shutdown -h +6
shutdown sends a notification to all logged-in users. To make your own message, use:
# shutdown -h +6 "Time to stop working and start partying."
Console users will see:
Broadcast message from root (pts/6) Wed Aug 14 13:51:24 2003
Time to stop working and start partying.
The system is going DOWN for system halt in 6 minutes!
To cancel a shutdown as root, use:
# shutdown -c
To reboot, you can use:
# shutdown -r now
or:
# reboot
or press Ctrl-Alt-Delete. Any user can do this, unless you disable it in /etc/inittab.
0 Comments