1. Logout command——Logout is a relative operation of login. After logging in the system, if you want to leave the system, the user only needs to directly issue the logout command:
[root@laolinux root]# logout
2. Shutdown or restart command—— shutdown
shutdown command can close all programs, restart or shutdown.
The parameter descriptions are as follows:
Shutdown immediately: The -h parameter makes the system shut down immediately. The example is as follows:
[root@laolinux root]# shutdown –h now ——” Request the system to shut down immediately and
specify the shutdown time: the time parameter can specify the shutdown time;
or set the time after which the shutdown command is run;
for example:
[root@laolinux root] # shutdown now ——"Shut down immediately
[root@laolinux root]# shutdown +5 ——"Shut down after 5 minutes [root@laolinux root]# shutdown 10:30 ——" Automatic restart after
shutdown at 10:30 :
The -r parameter sets restart after shutdown.
For example:
[root@laolinux root]# shutdown -r now ——"Shut down the system immediately and restart
[root@laolinux root]# shutdown -r 23:59 ——"Specify restart at 23:59
3. Restart the computer command --reboot
The reboot command is used to restart the system. The commonly used parameters are as follows:
-f parameter: Shut down without following the normal procedure, directly shut down the system and restart the computer.
-I parameter: Shut down all network interfaces before rebooting.
Although the reboot command parameters can be used, generally just enter reboot.
Simple commands to log off, shut down and restart under linux operating system
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326762357&siteId=291194637
Ranking