206 Welcome to Linux
Figure 15.16: The shutdown command at the shell prompt
To reboot from the prompt, type:
shutdown -r now
(See figure 15.16.)
Or, if you want to exit from your system and turn off your machine, type:
shutdown -h now
The -r option stands for “reboot,” while the -h option means “halt.” Stating now means that you
want to perform this action immediately.
Please Note: Remember to save your work and exit from any applications which may be running
before you perform a shutdown from the shell prompt, because you could lose work.
If you choose to halt the system, you’ll see a list of messages about which services are stopping; then,
you’ll see:
The system is halted
Now everything’s put away and it’s safe to turn off your computer.
Comments to this Manuals