Use the init command of linux to switch the system run level
In this article, let's take a look at switching system runlevels using linux's init command. There is a certain reference value, friends in need can refer to, hope to help you.
The init command is a process initialization tool under Linux. The init process is the parent process of all Linux processes, and its process number is 1. The init command is one of the indispensable programs in the Linux operating system. The init process is guided by the Linux kernel and is the first process in the system.
Syntax format: init [parameters]
Commonly used parameters: coach
Shutdown 1 single user 2 multi-user 3 full multi-user mode 5 graphical interface 6 restart
Reference example
Shut down the server:
[root@linuxcool ~] # init 0
Toggle single user mode:
[root@linuxcool ~] # init 1
Toggle multiuser mode:
[root@linuxcool ~] # init 2
Toggle full multiuser mode:
[root@linuxcool ~] # init 3
Restart the server:
[root@linuxcool ~] # init 6 or above is a brief introduction to switching the running level of the system using linux's init command. Of course, you have to use the above differences in detail before you understand it. If you want to know more, welcome to follow the industry information channel!