Logout: Logout
Logout Logoff is the relative operation of the landing, after landing the system, to leave the system, the user can simply release the Logout command:
[[email protected] root] #logout
Red Hat linuxrelease 9 (shike)
Kernel 2.4.20.8 on an i686
Login:← back to the landing screen
Shutdown or restart: shutdown
The shutdown command closes all programs and restarts or shuts down according to the user's needs.
To shut down immediately:
-h parameter to shut down the system immediately
[[email protected] root] #shutdown –h now← requires the system to be shut down immediately
Specify Shutdown time:
The time parameter can specify when to shut down, or set how long to run the shutdown command
[[email protected] root] #shutdown now← shut down immediately
[[email protected] root] #shutdown +5←5 minutes after shutdown
[[email protected] root] #shutdown 10:30← shut down at 10:30
Automatic Restart after shutdown:
-R parameter set shutdown after reboot
[[email protected] root] #shutdown-R now← immediately shut down the system and reboot
[[email protected] root] #shutdown-R 23:59← Specify restart at 23:59
Restart your computer: reboot
As the name implies, the reboot command is used to reboot the system. The commonly used parameters are as follows:
-F parameter: Shut down the system and restart the computer by shutting down the normal program.
-I parameter: Close all network interfaces before restarting.
Although the reboot command has a parameter that can be used, it is generally only necessary to run the reboot command separately.
Linux-logoff, shutdown, restart