< Day Day Up > |
What does it mean to shut down the system? Well, in its simplest form, a shutdown of the system simply means issuing the /sbin/shutdown command. The shutdown command terminates all processing. It has many options, including the following:
If you issue a shutdown -h, the halt command is called by shutdown. You can also call halt directly if you want. (Note that if halt or reboot is called when the system is not in runlevel 0 or 6 (when its running normally), shutdown will be invoked. For more information, see the shutdown or halt man pages.) Here are some of the things your system does when you issue the shutdown -h or halt command:
To shut down and automatically reboot the system, you would type $ shutdown -r now To halt the system, you would type $ shutdown -h now To shut down the system in two minutes, type $ shutdown -h 120 You do have ways other than shutdown to bring down the system. You can issue halt, which was already mentioned, reboot, or poweroff. If you want to bring down your system, I strongly recommend using shutdown because it provides a secure smooth transition to differing run levels, or to power down the system. |
< Day Day Up > |