In most linux releases, there are usually eight
In most linux releases, there are usually eight runlevels
Runlevel System State
0 Halt the system
1 Single user mode
2 Basic multi user mode
3 Multi user mode
5 Multi user mode with GUI
6 Reboot the system
S, s Single user mode
You can view it in the/etc/inittab file.
[Root @ wode003 ~] # Cat/etc/inittab
-Bash: cat/etc/inittab: no file or directory
[Root @ wode003 ~] # Cat/etc/inittab
# Inittab is no longer used when using systemd.
#
# Adding configuration here will have no effect on your system.
#
# Ctrl-Alt-Delete is handled by/usr/lib/systemd/system/ctrl-alt-del.target
#
# Define EMD uses 'targets' instead of runlevels. By default, there are two main targets:
#
# Multi-user.target: analogous to runlevel 3
# Graphical.tar get: analogous to runlevel 5
#
# To view current default target, run:
# Systemctl get-default
#
# To set a default target, run:
# Systemctl set-default TARGET.tar get
#
// Get-default
[Root @ wode003 ~] # Systemctl get-default
Graphical.tar get
// Set-default
[Root @ wode003 ~] # Systemctl set-default multi-user.target
Rm '/etc/systemd/system/default.tar get'
Ln-s '/usr/lib/systemd/system/multi-user.target'/etc/systemd/system/default.tar get'
[Root @ wode003 ~] # Systemctl get-default
Multi-user.target
[Root @ wode003 ~] #