Shutdown: [parameter] [TIME]
-H: Shutdown
-R: Restart
-C: Cancel last shutdown or restart
[[email protected] ~]# shutdown-h now # #马上重启 [[email protected] ~]# shutdown- h 20:30 # #定时20:30 off
Init: System Run Level
0: Turn off the machine
1: Single User
2: Not fully multiuser, NFS not included
3. Full Multi-user
4. Unassigned
5. Graphical interface
6. Restart
[Email protected] ~]# Cat/etc/inittab # #配置文件查看系统默认运行级别 # Default RunLevel. The runlevels used are:# 0-halt (do not set Initdefault to this) # 1-single user mode# 2-multiuser, Witho UT NFS (the same as 3, if you don't have networking) # 3-full multiuser mode# 4-unused# 5-x11# 6-r Eboot (do not set Initdefault to this) # Id:5:initdefault: # #ps: If the default level is set to 0 or 6. The system will reboot by default, quack
[Email protected] ~]# RunLevel # #查询当前运行级别N 5
Logout: User logged out
"Linux" shutdown restart command