To View the default runlevel while booting the Linux Operating System
[root@tsmservertest ~]# vi /etc/inittab
id:5:initdefault: (End of the line in Fedora OS)
Note: It means that OS by default always boot to GUI mode.
To View the current runlevel
[root@tsmservertest ~]# runlevel
N 5
To Switch to another runlevel and check the runlevl
[root@tsmservertest ~]# init 3
[root@tsmservertest ~]# runlevel
5 3
[root@tsmservertest ~]# init 2
[root@tsmservertest ~]# runlevel
3 2
[root@tsmservertest ~]# init 1
[root@tsmservertest ~]# runlevel
1 S
[root@tsmservertest ~]# init 6
To View the grup configuration file
[root@localhost ~]# cat /boot/grub/grub.conf
[root@tsmservertest ~]# vi /etc/inittab
id:5:initdefault: (End of the line in Fedora OS)
Note: It means that OS by default always boot to GUI mode.
To View the current runlevel
[root@tsmservertest ~]# runlevel
N 5
To Switch to another runlevel and check the runlevl
[root@tsmservertest ~]# init 3
[root@tsmservertest ~]# runlevel
5 3
[root@tsmservertest ~]# init 2
[root@tsmservertest ~]# runlevel
3 2
[root@tsmservertest ~]# init 1
[root@tsmservertest ~]# runlevel
1 S
[root@tsmservertest ~]# init 6
To View the grup configuration file
[root@localhost ~]# cat /boot/grub/grub.conf