1.7 Operating levels under Linux
0 System shutdown mode, the system default operation level cannot be set to 0, otherwise it will not start normally, the machine shuts down.
1 single-user mode, root privilege, for system maintenance, prohibit remote login, like Safe mode login under Windows.
2 Multi-user mode, no NFS network support.
3 full multi-user text mode with NFS, login to console command line mode.
4 The system is unused, reserved for general use, and in some special cases it can be used to do something. For example, you can switch to this mode to do some setup when your laptop's battery is running out.
5 graphical mode, after landing into the graphics
6 Restart mode, the default run level cannot be set to 6, otherwise it will not start normally. Running the init 6 machine will restart.
2. Change the operating level
2.1. Raspberry Pi/centos
1) Run-time modification, conversion to 3-level operation mode
3
2) Specify the operating mode when booting up
sudo vim/etc/inittab
Id:x:initdefault: This line changed to Id:3:initdefault:
3. View Run Level
$ runlevel 2 3
2 and 3 are just the runlevel, and now the current run level
Modifying the Linux Run level