shutdown [option] Time (shutdown reboot more secure)
-C cancels the previous shutdown command
-H shutdown
-R Restart
For example,:& means running in the background
[Email protected]:~# shutdown-r to: -&[1]1805[email protected]:~# Shutdown Scheduled forFri -- ,- + to: -:xxPDT, use'shutdown-c'To Cancel. [1]+ done Shutdown-r to: -[email protected]:~#
Standard shutdown command: shutdown-h now
Remote servers try to avoid remote shutdown.
Other shutdown commands: (not very secure, no guarantee of proper storage before shutdown)
Halt
Poweroff
Init 0
Other Restart commands:
Reboot (can be used, relatively safe)
Init 6
System operating level:
0 Turn off the machine
1 Single User
2 not fully multi-user, no NFS service included
3 Full Multi-user
4 Not assigned
5 graphical interface
6 restart
RunLevel View current Run level
You can set the system default run level by modifying the "/etc/inittab" file. 0 and 6 cannot be the default level, and the default level that can be selected is usually only 3 and 5 (if the graphical interface is installed).
Note: Linux generally uses uppercase "X" to represent the graphical interface.
Note: Ubuntu default is no/etc/inittab file
Sign Out:
Logout
Linux default allows simultaneous telnet of 256 users, but in fact the maximum can support more than 60,000; Windows XP allows only 1 users to log in at the same time, Windows Serve2003 only allows 2 users to log in at the same time, Windows Serve2008 is 4-8 users, if the remote login user does not exit correctly, then when the maximum number of users logged in at the same time, the other users will not be able to log on, this is the only restart the server.
Although it is not a problem to exit correctly when Telnet to Linux, you should try to exit correctly using the "logout" command.
Linux commands-Shut down restart command shutdown