"Linux" shutdown restart command

Source: Internet
Author: User

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

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.