Linux commands-Shut down restart command shutdown

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.