Conventional method to change runlevel with /etc/inittab has changed. System and service manager command systemd is used. Runlevel have been replaced with targets. Although runlevel command, can still be used.
Below is comparison of different runlevels and related targets
|1||Single user mode||rescue.target|
|3||full multiuser with networking in text mode||multi-user.target|
|5||full multiuser with networking in graphical mode||graphical.target|
View current runlevel
This command will show current runlevel
List available targets
This command will show list of all loaded target
systemctl list-units --type target
Runlevel can be changed for current session or permanently default runlevel can also be changed.
Change current runlevel
To change current level to any other runlevel
systemctl isolate name.target
Change default run level
To change default runlevel
systemctl set-default <name of target>.target
Above commands replaces the /etc/systemd/system/default.target file with a symbolic link to /usr/lib/systemd/system/name.target.
These commands have been tested on fedora 25 and Redhat 7